diff options
author | Romain Guy <romainguy@android.com> | 2009-07-22 11:25:42 -0700 |
---|---|---|
committer | Romain Guy <romainguy@android.com> | 2009-07-22 11:29:59 -0700 |
commit | 1f7f3c336a767802a0cada789f6b2055f45911dc (patch) | |
tree | 9f401c26d409f3d852ed7e034751584f84c1dd9e /core | |
parent | 113eaa59c1dfafd548a13919e48c0346c0c925ac (diff) | |
download | frameworks_base-1f7f3c336a767802a0cada789f6b2055f45911dc.zip frameworks_base-1f7f3c336a767802a0cada789f6b2055f45911dc.tar.gz frameworks_base-1f7f3c336a767802a0cada789f6b2055f45911dc.tar.bz2 |
Fixes #1994125. Ensures AbsListView's filter window is always dismissed.
Diffstat (limited to 'core')
-rw-r--r-- | core/java/android/widget/AbsListView.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/java/android/widget/AbsListView.java b/core/java/android/widget/AbsListView.java index 777beed..eea97dc 100644 --- a/core/java/android/widget/AbsListView.java +++ b/core/java/android/widget/AbsListView.java @@ -1535,6 +1535,9 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te protected void onDetachedFromWindow() { super.onDetachedFromWindow(); + // Dismiss the popup in case onSaveInstanceState() was not invoked + dismissPopup(); + final ViewTreeObserver treeObserver = getViewTreeObserver(); if (treeObserver != null) { treeObserver.removeOnTouchModeChangeListener(this); |