Skip to content

Commit

Permalink
settings: default terminal autocomplete to false (fixes #1834) (#1835)
Browse files Browse the repository at this point in the history
  • Loading branch information
Okuro3499 authored Feb 6, 2024
1 parent cd063f2 commit de75d5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class TerminalFragment : BaseTerminalFragment() {
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
bind = ActivityTerminalFragmentBinding.inflate(inflater, container, false)
onLoad(mHandler)
val autocomplete = PreferenceManager.getDefaultSharedPreferences(requireContext()).getBoolean("autocomplete", true)
val autocomplete = PreferenceManager.getDefaultSharedPreferences(requireContext()).getBoolean("autocomplete", false)
if (autocomplete) {
jsonSend(true)
listener.sendMessage(getString(R.string.TREEHOUSES_COMMANDS_JSON))
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/xml/general_preferences.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
android:layout="@layout/custom_pref_middle"
android:summary="Enable or Disable Autocomplete Suggestions of Commands in Terminal"
android:key="autocomplete"
android:defaultValue="true" />
android:defaultValue="false" />

<io.treehouses.remote.views.RoundedListPreference
android:defaultValue="Follow System"
Expand Down

0 comments on commit de75d5f

Please sign in to comment.