Hide specific preferences in settings for improved user experience

Signed-off-by: DevarshVasani <vasanidevarsh@gmail.com>
This commit is contained in:
Devarsh Chintanbhai Vasani 2025-03-05 00:43:28 +05:30 committed by Konstantin Pastbin
parent 58546f3115
commit cf00843b0a
3 changed files with 7 additions and 0 deletions

View file

@ -231,6 +231,8 @@ public class SettingsPrefsFragment extends BaseXmlSettingsFragment implements La
if (!SharedPropertiesUtils.shouldShowEmulateBadStorageSetting(requireContext()))
removePreference(getString(R.string.pref_settings_general), pref);
else
pref.setVisible(true);
}
private void initAutoZoomPrefsCallbacks()

View file

@ -68,6 +68,7 @@
android:title="@string/setting_emulate_bad_storage"
app:singleLineTitle="false"
android:defaultValue="false"
app:isPreferenceVisible="false"
android:order="13"/>
<ListPreference
android:key="@string/pref_use_mobile_data"

View file

@ -9,16 +9,20 @@
<SwitchPreferenceCompat
android:key="@string/pref_tts_street_names"
android:title="@string/pref_tts_street_names_title"
app:isPreferenceVisible="false"
android:summary="@string/pref_tts_street_names_description"
android:defaultValue="false" />
<ListPreference
android:key="@string/pref_tts_language"
app:isPreferenceVisible="false"
android:title="@string/pref_tts_language_title" />
<SeekBarPreference
android:key="@string/pref_tts_volume"
app:isPreferenceVisible="false"
android:title="@string/volume" />
<Preference
android:key="@string/pref_tts_test_voice"
app:isPreferenceVisible="false"
android:title="@string/pref_tts_test_voice_title" />
<Preference
android:key="@string/pref_tts_open_system_settings"