Merge "Pause expensive view updates before setting hw/sw layers." into tm-dev am: 2dac4f7f4c am: 2f753f10d3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18673700 Change-Id: Ibb5951eb17116577e9da1cb57e42f096542a0b2f Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
4d7e994275
4 files changed
+27
-6
No files matched your search
@@ -3274,7 +3274,11 @@ public class Workspace<T extends View & PageIndicator> extends PagedView<T>
|
||||
}
|
||||
}
|
||||
|
||||
private View mapOverCellLayout(CellLayout layout, ItemOperator op) {
|
||||
/**
|
||||
* Perform {param operator} over all the items in a given {param layout}.
|
||||
* @return The first item that satisfies the operator or null.
|
||||
*/
|
||||
public View mapOverCellLayout(CellLayout layout, ItemOperator operator) {
|
||||
// TODO(b/128460496) Potential race condition where layout is not yet loaded
|
||||
if (layout == null) {
|
||||
return null;
|
||||
@@ -3284,7 +3288,7 @@ public class Workspace<T extends View & PageIndicator> extends PagedView<T>
|
||||
final int itemCount = container.getChildCount();
|
||||
for (int itemIdx = 0; itemIdx < itemCount; itemIdx++) {
|
||||
View item = container.getChildAt(itemIdx);
|
||||
if (op.evaluate((ItemInfo) item.getTag(), item)) {
|
||||
if (operator.evaluate((ItemInfo) item.getTag(), item)) {
|
||||
return item;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user