mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-23 18:36:50 +01:00
Follow light/dark theme according to system settings as default setting
This commit is contained in:
parent
b7790569b6
commit
3c6fce27a4
@ -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)
|
||||||
|
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user