[automerger] Prevent unecessary invalidates am: 6c5e169de6
Change-Id: Ifdb600c20fbe79ece99eb593f199f561f79ee2e6
This commit is contained in:
@@ -943,6 +943,7 @@ public abstract class RecentsView<T extends BaseActivity>
|
||||
boolean hasValidSize = getWidth() > 0 && getHeight() > 0;
|
||||
if (sizeChanged && hasValidSize) {
|
||||
mEmptyTextLayout = null;
|
||||
mLastMeasureSize.set(getWidth(), getHeight());
|
||||
}
|
||||
|
||||
if (!mShowEmptyMessage) return;
|
||||
@@ -953,7 +954,6 @@ public abstract class RecentsView<T extends BaseActivity>
|
||||
scrollTo(0, 0);
|
||||
|
||||
if (hasValidSize && mEmptyTextLayout == null) {
|
||||
mLastMeasureSize.set(getWidth(), getHeight());
|
||||
int availableWidth = mLastMeasureSize.x - mEmptyMessagePadding - mEmptyMessagePadding;
|
||||
mEmptyTextLayout = StaticLayout.Builder.obtain(mEmptyMessage, 0, mEmptyMessage.length(),
|
||||
mEmptyMessagePaint, availableWidth)
|
||||
|
||||
Reference in New Issue
Block a user