mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 11:18:21 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user