ThemeChangeAwareActivity: recreate activity after changing theme
API 21 had issues without this. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
d62526fde6
commit
b9948085a4
@ -42,6 +42,7 @@ public abstract class ThemeChangeAwareActivity extends AppCompatActivity impleme
|
|||||||
sharedPreferences.getBoolean(key, false) ?
|
sharedPreferences.getBoolean(key, false) ?
|
||||||
AppCompatDelegate.MODE_NIGHT_YES :
|
AppCompatDelegate.MODE_NIGHT_YES :
|
||||||
AppCompatDelegate.MODE_NIGHT_NO);
|
AppCompatDelegate.MODE_NIGHT_NO);
|
||||||
|
recreate();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user