mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-02 08:56:55 +00:00
[PostBoot] Do not destroy post boot loader because of theme change
Bug: 298231234 Test: manual Flag: NONE - xml flag not supported Change-Id: I7ee9de3bddaac8578b639f091d6bbbf3ae458fd1
This commit is contained in:
@@ -50,6 +50,8 @@ public abstract class BaseDraggingActivity extends BaseActivity
|
||||
// automatically when user interacts with the launcher.
|
||||
public static final Object AUTO_CANCEL_ACTION_MODE = new Object();
|
||||
|
||||
private boolean mIsThemeUpdatedBeforeRecreate;
|
||||
|
||||
private ActionMode mCurrentActionMode;
|
||||
|
||||
private int mThemeRes = R.style.AppTheme;
|
||||
@@ -80,8 +82,13 @@ public abstract class BaseDraggingActivity extends BaseActivity
|
||||
updateTheme();
|
||||
}
|
||||
|
||||
private void updateTheme() {
|
||||
public boolean isThemeUpdatedBeforeRecreate() {
|
||||
return mIsThemeUpdatedBeforeRecreate;
|
||||
}
|
||||
|
||||
protected void updateTheme() {
|
||||
if (mThemeRes != Themes.getActivityThemeRes(this)) {
|
||||
mIsThemeUpdatedBeforeRecreate = true;
|
||||
recreate();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user