mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-03 17:36:49 +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:
@@ -64,6 +64,7 @@ public class ShortcutAndWidgetContainer extends ViewGroup implements FolderIcon.
|
||||
|
||||
private final ActivityContext mActivity;
|
||||
private boolean mInvertIfRtl = false;
|
||||
public boolean mHasOnLayoutBeenCalled = false;
|
||||
|
||||
@Nullable
|
||||
private TranslationProvider mTranslationProvider = null;
|
||||
@@ -201,6 +202,7 @@ public class ShortcutAndWidgetContainer extends ViewGroup implements FolderIcon.
|
||||
@Override
|
||||
protected void onLayout(boolean changed, int l, int t, int r, int b) {
|
||||
Trace.beginSection("ShortcutAndWidgetConteiner#onLayout");
|
||||
mHasOnLayoutBeenCalled = true; // b/349929393 - is the required call to onLayout not done?
|
||||
int count = getChildCount();
|
||||
for (int i = 0; i < count; i++) {
|
||||
final View child = getChildAt(i);
|
||||
|
||||
Reference in New Issue
Block a user