prepare settings

This commit is contained in:
Thomas 2022-09-12 09:18:42 +02:00
parent 9a929c2296
commit 4220338374
2 changed files with 23 additions and 0 deletions

View File

@ -872,6 +872,8 @@
<string name="SET_LONG_PRESS_STORE_MEDIA" translatable="false">SET_LONG_PRESS_STORE_MEDIA</string>
<string name="SET_UNFOLLOW_VALIDATION" translatable="false">SET_UNFOLLOW_VALIDATION</string>
<string name="SET_USE_SINGLE_TOPBAR" translatable="false">SET_USE_SINGLE_TOPBAR</string>
<string name="SET_TIMELINES_IN_A_LIST" translatable="false">SET_TIMELINES_IN_A_LIST</string>
<string name="SET_DISPLAY_ADMIN_STATUSES" translatable="false">SET_DISPLAY_ADMIN_STATUSES</string>
<string name="SET_LED_COLOUR_VAL" translatable="false">SET_LED_COLOUR_VAL</string>
<string name="SET_SHOW_BOOSTS" translatable="false">SET_SHOW_BOOSTS</string>
@ -1440,4 +1442,8 @@
<string name="permission_missing">Permission not granted!</string>
<string name="load_settings">Load exported settings</string>
<string name="push_distributors">Push distributor</string>
<string name="set_single_topbar_title">Single action bar</string>
<string name="set_single_topbar">When enabled, the app will only have a single bar for timelines</string>
<string name="set_timelines_in_a_list_title">Timelines in a list</string>
<string name="set_timelines_in_a_list">When enabled, all pinned timelines will be displayed in a drop-down menu</string>
</resources>

View File

@ -3,6 +3,23 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">
<SwitchPreferenceCompat
app:defaultValue="false"
app:iconSpaceReserved="false"
app:key="@string/SET_USE_SINGLE_TOPBAR"
app:singleLineTitle="false"
app:summary="@string/set_single_topbar"
app:title="@string/set_single_topbar_title" />
<SwitchPreferenceCompat
app:defaultValue="false"
app:iconSpaceReserved="false"
app:key="@string/SET_TIMELINES_IN_A_LIST"
app:singleLineTitle="false"
app:summary="@string/set_timelines_in_a_list"
app:title="@string/set_timelines_in_a_list_title" />
<SwitchPreferenceCompat
app:defaultValue="true"
app:iconSpaceReserved="false"