From 1f7f3c336a767802a0cada789f6b2055f45911dc Mon Sep 17 00:00:00 2001 From: Romain Guy Date: Wed, 22 Jul 2009 11:25:42 -0700 Subject: Fixes #1994125. Ensures AbsListView's filter window is always dismissed. --- core/java/android/widget/AbsListView.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'core') 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 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); -- cgit v1.1