Add logs to check if onLayout is ever not called.

Bug: 349929393
Test: Verified locally that the logs are shown in a bugreport.
Flag: EXEMPT logs
Change-Id: Ie5b759a2616456db9e232efcb0cfd21fdd4cc291
This commit is contained in:
Stefan Andonian
2024-08-14 22:51:32 +00:00
parent ecb9ecd770
commit fb34891ba6
4 changed files with 21 additions and 1 deletions

View File

@@ -235,6 +235,7 @@ public class Workspace<T extends View & PageIndicator> extends PagedView<T>
boolean mChildrenLayersEnabled = true;
private boolean mStripScreensOnPageStopMoving = false;
public boolean mHasOnLayoutBeenCalled = false;
private boolean mWorkspaceFadeInAdjacentScreens;
@@ -1445,6 +1446,7 @@ public class Workspace<T extends View & PageIndicator> extends PagedView<T>
@Override
protected void onLayout(boolean changed, int left, int top, int right, int bottom) {
mHasOnLayoutBeenCalled = true; // b/349929393 - is the required call to onLayout not done?
if (mUnlockWallpaperFromDefaultPageOnLayout) {
mWallpaperOffset.setLockToDefaultPage(false);
mUnlockWallpaperFromDefaultPageOnLayout = false;