tabs_preferences.xml (3294B)
1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- This Source Code Form is subject to the terms of the Mozilla Public 3 - License, v. 2.0. If a copy of the MPL was not distributed with this 4 - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> 5 <androidx.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" 6 xmlns:app="http://schemas.android.com/apk/res-auto"> 7 <androidx.preference.PreferenceCategory 8 android:layout="@layout/preference_cat_style" 9 android:title="@string/preferences_tab_view" 10 app:allowDividerAbove="false" 11 app:iconSpaceReserved="false"> 12 <org.mozilla.fenix.settings.RadioButtonPreference 13 android:defaultValue="false" 14 android:key="@string/pref_key_tab_view_list_do_not_use" 15 android:title="@string/tab_view_list" /> 16 17 <org.mozilla.fenix.settings.RadioButtonPreference 18 android:defaultValue="true" 19 android:key="@string/pref_key_tab_view_grid" 20 android:title="@string/tab_view_grid" /> 21 </androidx.preference.PreferenceCategory> 22 23 <androidx.preference.PreferenceCategory 24 android:layout="@layout/preference_cat_style" 25 android:title="@string/preferences_close_tabs" 26 app:allowDividerAbove="true" 27 app:iconSpaceReserved="false"> 28 <org.mozilla.fenix.settings.RadioButtonPreference 29 android:defaultValue="true" 30 android:key="@string/pref_key_close_tabs_manually" 31 android:title="@string/close_tabs_manually" /> 32 33 <org.mozilla.fenix.settings.RadioButtonPreference 34 android:defaultValue="false" 35 android:key="@string/pref_key_close_tabs_after_one_day" 36 android:title="@string/close_tabs_after_one_day" /> 37 38 <org.mozilla.fenix.settings.RadioButtonPreference 39 android:defaultValue="false" 40 android:key="@string/pref_key_close_tabs_after_one_week" 41 android:title="@string/close_tabs_after_one_week" /> 42 43 <org.mozilla.fenix.settings.RadioButtonPreference 44 android:defaultValue="false" 45 android:key="@string/pref_key_close_tabs_after_one_month" 46 android:title="@string/close_tabs_after_one_month" /> 47 </androidx.preference.PreferenceCategory> 48 49 <androidx.preference.PreferenceCategory 50 android:layout="@layout/preference_cat_style" 51 android:title="@string/preferences_inactive_tabs" 52 android:key="@string/pref_key_inactive_tabs_category" 53 app:allowDividerAbove="true" 54 app:iconSpaceReserved="false"> 55 <SwitchPreference 56 android:defaultValue="true" 57 android:key="@string/pref_key_inactive_tabs" 58 android:title="@string/preferences_inactive_tabs_title"/> 59 </androidx.preference.PreferenceCategory> 60 61 <PreferenceCategory 62 android:key="@string/pref_key_pbm_lock_category_divider" 63 android:layout="@xml/preference_category_divider" 64 android:selectable="false" /> 65 <SwitchPreference 66 android:defaultValue="false" 67 android:key="pref_key_private_browsing_locked_enabled" /> 68 <Preference 69 android:key="@string/pref_key_private_browsing_lock_device_feature_enabled" /> 70 </androidx.preference.PreferenceScreen>