mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-27 23:36:47 +00:00
Merge "Fix DEFER_UPDATES_NEXT_DRAW flag is not unset when binging happens twice" into ub-launcher3-qt-r1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
0a9e91b6e4
@@ -1896,6 +1896,10 @@ public class Launcher extends BaseDraggingActivity implements LauncherExterns,
|
||||
if (mPendingExecutor != null) {
|
||||
mPendingExecutor.markCompleted();
|
||||
mPendingExecutor = null;
|
||||
|
||||
// We might have set this flag previously and forgot to clear it.
|
||||
mAppsView.getAppsStore()
|
||||
.disableDeferUpdatesSilently(AllAppsStore.DEFER_UPDATES_NEXT_DRAW);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2249,9 +2253,7 @@ public class Launcher extends BaseDraggingActivity implements LauncherExterns,
|
||||
|
||||
@Override
|
||||
public void executeOnNextDraw(ViewOnDrawExecutor executor) {
|
||||
if (mPendingExecutor != null) {
|
||||
mPendingExecutor.markCompleted();
|
||||
}
|
||||
clearPendingBinds();
|
||||
mPendingExecutor = executor;
|
||||
if (!isInState(ALL_APPS)) {
|
||||
mAppsView.getAppsStore().enableDeferUpdates(AllAppsStore.DEFER_UPDATES_NEXT_DRAW);
|
||||
|
||||
@@ -80,6 +80,10 @@ public class AllAppsStore {
|
||||
}
|
||||
}
|
||||
|
||||
public void disableDeferUpdatesSilently(int flag) {
|
||||
mDeferUpdatesFlags &= ~flag;
|
||||
}
|
||||
|
||||
public int getDeferUpdatesFlags() {
|
||||
return mDeferUpdatesFlags;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user