Removing unnecessary isBindingItems method from ActivityContext
Bug: 393703968 Flag: EXEMPT refactor Test: Presubmit Change-Id: I06fd1dcc81da5e5502a9fb0751c2701b26fd4621
This commit is contained in:
1 parent
967c4999a6
commit
d8e5ddb4cd
6 files changed
+4
-43
No files matched your search
@@ -61,6 +61,7 @@ public class TaskbarModelCallbacks implements
|
||||
// Used to defer any UI updates during the SUW unstash animation.
|
||||
private boolean mDeferUpdatesForSUW;
|
||||
private Runnable mDeferredUpdates;
|
||||
private boolean mBindingItems = false;
|
||||
|
||||
public TaskbarModelCallbacks(
|
||||
TaskbarActivityContext context, TaskbarView container) {
|
||||
@@ -74,14 +75,14 @@ public class TaskbarModelCallbacks implements
|
||||
|
||||
@Override
|
||||
public void startBinding() {
|
||||
mContext.setBindingItems(true);
|
||||
mBindingItems = true;
|
||||
mHotseatItems.clear();
|
||||
mPredictedItems = Collections.emptyList();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void finishBindingItems(IntSet pagesBoundFirst) {
|
||||
mContext.setBindingItems(false);
|
||||
mBindingItems = false;
|
||||
commitItemsToUI();
|
||||
}
|
||||
|
||||
@@ -167,7 +168,7 @@ public class TaskbarModelCallbacks implements
|
||||
}
|
||||
|
||||
private void commitItemsToUI() {
|
||||
if (mContext.isBindingItems()) {
|
||||
if (mBindingItems) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user