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:
@@ -42,6 +42,7 @@ public abstract class ThemeChangeAwareActivity extends AppCompatActivity impleme
|
||||
sharedPreferences.getBoolean(key, false) ?
|
||||
AppCompatDelegate.MODE_NIGHT_YES :
|
||||
AppCompatDelegate.MODE_NIGHT_NO);
|
||||
recreate();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user