Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7ba66be1 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "[PostBoot] Don't destroy loader because of config change, not just...

Merge "[PostBoot] Don't destroy loader because of config change, not just because of theme change" into main
parents 423178c7 edb2741c
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -50,8 +50,6 @@ 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;
@@ -82,13 +80,8 @@ public abstract class BaseDraggingActivity extends BaseActivity
        updateTheme();
    }

    public boolean isThemeUpdatedBeforeRecreate() {
        return mIsThemeUpdatedBeforeRecreate;
    }

    protected void updateTheme() {
        if (mThemeRes != Themes.getActivityThemeRes(this)) {
            mIsThemeUpdatedBeforeRecreate = true;
            recreate();
        }
    }