mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-25 03:11:10 +01:00
Re-enable view prefetching.
This commit is contained in:
@@ -17,11 +17,21 @@ public class DynamicTheme {
|
||||
public static final String LIGHT = "light";
|
||||
public static final String SYSTEM = "system";
|
||||
|
||||
private static boolean isDarkTheme;
|
||||
|
||||
private int currentTheme;
|
||||
|
||||
public void onCreate(Activity activity) {
|
||||
boolean wasDarkTheme = isDarkTheme;
|
||||
|
||||
currentTheme = getSelectedTheme(activity);
|
||||
isDarkTheme = isDarkTheme(activity);
|
||||
|
||||
activity.setTheme(currentTheme);
|
||||
|
||||
if (isDarkTheme != wasDarkTheme) {
|
||||
CachedInflater.from(activity).clear();
|
||||
}
|
||||
}
|
||||
|
||||
public void onResume(Activity activity) {
|
||||
|
||||
Reference in New Issue
Block a user