Merge "Return mSynchronouslyBoundPages as getPagesToBindSynchronously between onInitialBindCompleteand finishBindingItems" into sc-v2-dev am: b830b2d999
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15674917 Change-Id: I8ba4c9869103fa720d99d262a994b79fcd274256
This commit is contained in:
@@ -2118,8 +2118,16 @@ public class Launcher extends StatefulActivity<LauncherState> implements Launche
|
||||
|
||||
@Override
|
||||
public IntSet getPagesToBindSynchronously(IntArray orderedScreenIds) {
|
||||
IntSet visibleIds = mPagesToBindSynchronously.isEmpty()
|
||||
? mWorkspace.getCurrentPageScreenIds() : mPagesToBindSynchronously;
|
||||
IntSet visibleIds;
|
||||
if (!mPagesToBindSynchronously.isEmpty()) {
|
||||
visibleIds = mPagesToBindSynchronously;
|
||||
} else if (!mWorkspaceLoading) {
|
||||
visibleIds = mWorkspace.getCurrentPageScreenIds();
|
||||
} else {
|
||||
// If workspace binding is still in progress, getCurrentPageScreenIds won't be accurate,
|
||||
// and we should use mSynchronouslyBoundPages that's set during initial binding.
|
||||
visibleIds = mSynchronouslyBoundPages;
|
||||
}
|
||||
IntArray actualIds = new IntArray();
|
||||
|
||||
IntSet result = new IntSet();
|
||||
|
||||
Reference in New Issue
Block a user