1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-27 12:26:48 +01:00

Follow light/dark theme according to system settings as default setting

This commit is contained in:
Andreas Shimokawa 2020-05-05 14:46:09 +02:00
parent b7790569b6
commit 3c6fce27a4
2 changed files with 2 additions and 1 deletions

View File

@ -11,6 +11,7 @@
* ZeTime: Support rejecting calls * ZeTime: Support rejecting calls
* ZeTime: Try to fix weather conditions on newer firmwares * ZeTime: Try to fix weather conditions on newer firmwares
* ZeTime: Fix could not synchronize calendar on connect * ZeTime: Fix could not synchronize calendar on connect
* Allow set light/dark theme according to system settings (new default)
#### Version 0.43.3 #### Version 0.43.3
* Fossil Hybrid HR: Initial support for activity tracking (no sleep yet) * Fossil Hybrid HR: Initial support for activity tracking (no sleep yet)

View File

@ -934,7 +934,7 @@ public class GBApplication extends Application {
} }
public static boolean isDarkThemeEnabled() { public static boolean isDarkThemeEnabled() {
String selectedTheme = prefs.getString("pref_key_theme", context.getString(R.string.pref_theme_value_light)); String selectedTheme = prefs.getString("pref_key_theme", context.getString(R.string.pref_theme_value_system));
UiModeManager umm = (UiModeManager) context.getSystemService(Context.UI_MODE_SERVICE); UiModeManager umm = (UiModeManager) context.getSystemService(Context.UI_MODE_SERVICE);