From 299c902a632db412824d9fa1f0d89c77bb47629e Mon Sep 17 00:00:00 2001 From: proletarius101 Date: Mon, 10 May 2021 00:48:18 +0800 Subject: [PATCH] Fix places invoking applyDarkTheme() --- app/src/main/java/fr/gaulupeau/apps/Poche/ui/Themes.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/fr/gaulupeau/apps/Poche/ui/Themes.java b/app/src/main/java/fr/gaulupeau/apps/Poche/ui/Themes.java index 985c1b8f0..a6452d4bd 100644 --- a/app/src/main/java/fr/gaulupeau/apps/Poche/ui/Themes.java +++ b/app/src/main/java/fr/gaulupeau/apps/Poche/ui/Themes.java @@ -37,12 +37,12 @@ public static Theme getCurrentTheme() { static void applyTheme(Activity activity) { applyTheme(activity, true); - applyDarkTheme(); } static void applyTheme(Activity activity, boolean actionBar) { activity.setTheme(actionBar ? theme.getResId() : theme.getNoActionBarResId()); appliedThemes.put(activity, theme); + applyDarkTheme(); } private static void applyDarkTheme() { @@ -61,6 +61,7 @@ private static void applyDarkTheme() { static void applyDialogTheme(final Activity activity) { activity.setTheme(theme.getDialogResId()); appliedThemes.put(activity, theme); + applyDarkTheme(); } public static void checkTheme(Activity activity) {