Fixing Clear-all button being positioned incorrectly

Positioning used mClearAllButton.getTop(), which wasn't set until first
layout.

Bug: 72222505
Test: Manual
Change-Id: I6f60067fe6446e2359c3598084064f2df0673f47
This commit is contained in:
Vadim Tryshev
2018-05-10 18:20:30 -07:00
parent 08cf36ea54
commit 6ebbf309ce

View File

@@ -75,8 +75,8 @@ public class RecentsViewContainer extends InsettableFrameLayout {
}
@Override
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
super.onMeasure(widthMeasureSpec, heightMeasureSpec);
protected void onLayout(boolean changed, int left, int top, int right, int bottom) {
super.onLayout(changed, left, top, right, bottom);
mRecentsView.getTaskSize(mTempRect);