File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
app/src/main/java/fr/gaulupeau/apps/Poche/ui Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -37,12 +37,12 @@ public static Theme getCurrentTheme() {
37
37
38
38
static void applyTheme (Activity activity ) {
39
39
applyTheme (activity , true );
40
- applyDarkTheme ();
41
40
}
42
41
43
42
static void applyTheme (Activity activity , boolean actionBar ) {
44
43
activity .setTheme (actionBar ? theme .getResId () : theme .getNoActionBarResId ());
45
44
appliedThemes .put (activity , theme );
45
+ applyDarkTheme ();
46
46
}
47
47
48
48
private static void applyDarkTheme () {
@@ -61,6 +61,7 @@ private static void applyDarkTheme() {
61
61
static void applyDialogTheme (final Activity activity ) {
62
62
activity .setTheme (theme .getDialogResId ());
63
63
appliedThemes .put (activity , theme );
64
+ applyDarkTheme ();
64
65
}
65
66
66
67
public static void checkTheme (Activity activity ) {
You can’t perform that action at this time.
0 commit comments