Skip to content

Commit

Permalink
Fix places invoking applyDarkTheme()
Browse files Browse the repository at this point in the history
  • Loading branch information
proletarius101 committed May 9, 2021
1 parent 5668642 commit 299c902
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/main/java/fr/gaulupeau/apps/Poche/ui/Themes.java
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand All @@ -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) {
Expand Down

0 comments on commit 299c902

Please sign in to comment.