From de75d5f93092508d9090a16c241afa1355c46dab Mon Sep 17 00:00:00 2001 From: Gideon Okuro Date: Tue, 6 Feb 2024 20:24:20 +0300 Subject: [PATCH] settings: default terminal `autocomplete` to false (fixes #1834) (#1835) --- .../kotlin/io/treehouses/remote/fragments/TerminalFragment.kt | 2 +- app/src/main/res/xml/general_preferences.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/kotlin/io/treehouses/remote/fragments/TerminalFragment.kt b/app/src/main/kotlin/io/treehouses/remote/fragments/TerminalFragment.kt index 379976b0f..0ce3e8d69 100644 --- a/app/src/main/kotlin/io/treehouses/remote/fragments/TerminalFragment.kt +++ b/app/src/main/kotlin/io/treehouses/remote/fragments/TerminalFragment.kt @@ -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)) diff --git a/app/src/main/res/xml/general_preferences.xml b/app/src/main/res/xml/general_preferences.xml index 2fb010916..e080ee168 100644 --- a/app/src/main/res/xml/general_preferences.xml +++ b/app/src/main/res/xml/general_preferences.xml @@ -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" />