diff options
| author | 2016-11-01 23:09:02 +0000 | |
|---|---|---|
| committer | 2016-11-01 23:09:02 +0000 | |
| commit | 112345c1c3413c3491dbcefadb8d7722a48a039f (patch) | |
| tree | a339f4117bdabb77911bc2bdefbcb8831bbc10f8 | |
| parent | f4f48fc5f997133775ac9360b8cd1a257509e1fe (diff) | |
| parent | 07f434d02fd476bf78f8d30b929180a32b4b4948 (diff) | |
Don't invalidate list data during layout. am: 456158ffc2 am: 06ffff6132
am: 07f434d02f
Change-Id: I6adaa881b70805d46d2425dd979609c6e99e11c9
| -rw-r--r-- | core/java/android/widget/AbsListView.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/java/android/widget/AbsListView.java b/core/java/android/widget/AbsListView.java index f1bfadee5f36..c01348d69f3c 100644 --- a/core/java/android/widget/AbsListView.java +++ b/core/java/android/widget/AbsListView.java @@ -2168,7 +2168,6 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te } layoutChildren(); - mInLayout = false; mOverscrollMax = (b - t) / OVERSCROLL_LIMIT_DIVISOR; @@ -2176,6 +2175,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te if (mFastScroll != null) { mFastScroll.onItemCountChanged(getChildCount(), mItemCount); } + mInLayout = false; } /** @@ -2705,6 +2705,9 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te * fail to relayout them properly to accommodate for new bounds. */ void handleBoundsChange() { + if (mInLayout) { + return; + } final int childCount = getChildCount(); if (childCount > 0) { mDataChanged = true; |