Add option to change school from SettingsActivity

This commit is contained in:
2020-10-24 15:32:47 +02:00
committed by Matte23
parent ddacff0892
commit 109c56d111
9 changed files with 69 additions and 16 deletions

View File

@@ -11,6 +11,7 @@
<string name="preferences_general_header">Generale</string>
<string name="preference_notifications_header">Notifiche</string>
<string name="preferences_school">Scuola</string>
<string name="preferences_dark_theme">Tema scuro</string>
<string name="preferences_notify_new_circulars">Mostra notifiche</string>
<string name="preferences_poll_interval">Intervallo di sincronizzazione</string>

View File

@@ -11,6 +11,7 @@
<string name="preferences_general_header">General</string>
<string name="preference_notifications_header">Notifications</string>
<string name="preferences_school">School</string>
<string name="preferences_dark_theme">Dark theme</string>
<string name="preferences_notify_new_circulars">Show notifications</string>
<string name="preferences_poll_interval">Synchronization interval</string>

View File

@@ -3,6 +3,11 @@
<PreferenceCategory app:title="@string/preferences_general_header">
<ListPreference
app:key="school"
app:title="@string/preferences_school"
app:useSimpleSummaryProvider="true" />
<ListPreference
app:defaultValue="auto"
app:entries="@array/dark_theme_entries"