Skip to content

Commit 299c902

Browse files
Fix places invoking applyDarkTheme()
1 parent 5668642 commit 299c902

File tree

1 file changed

+2
-1
lines changed
  • app/src/main/java/fr/gaulupeau/apps/Poche/ui

1 file changed

+2
-1
lines changed

app/src/main/java/fr/gaulupeau/apps/Poche/ui/Themes.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ public static Theme getCurrentTheme() {
3737

3838
static void applyTheme(Activity activity) {
3939
applyTheme(activity, true);
40-
applyDarkTheme();
4140
}
4241

4342
static void applyTheme(Activity activity, boolean actionBar) {
4443
activity.setTheme(actionBar ? theme.getResId() : theme.getNoActionBarResId());
4544
appliedThemes.put(activity, theme);
45+
applyDarkTheme();
4646
}
4747

4848
private static void applyDarkTheme() {
@@ -61,6 +61,7 @@ private static void applyDarkTheme() {
6161
static void applyDialogTheme(final Activity activity) {
6262
activity.setTheme(theme.getDialogResId());
6363
appliedThemes.put(activity, theme);
64+
applyDarkTheme();
6465
}
6566

6667
public static void checkTheme(Activity activity) {

0 commit comments

Comments
 (0)