diff options
author | Romain Guy <romainguy@android.com> | 2009-06-04 13:26:52 -0700 |
---|---|---|
committer | Romain Guy <romainguy@android.com> | 2009-06-04 13:26:52 -0700 |
commit | f993ad5b89a8aa47fcbc7494811f45bb74cb8713 (patch) | |
tree | af67205886d89ab95401f87c5089bd034d6ee6eb /core | |
parent | 3d3e307a63144b1bddd534fefd35a557223d52bf (diff) | |
download | frameworks_base-f993ad5b89a8aa47fcbc7494811f45bb74cb8713.zip frameworks_base-f993ad5b89a8aa47fcbc7494811f45bb74cb8713.tar.gz frameworks_base-f993ad5b89a8aa47fcbc7494811f45bb74cb8713.tar.bz2 |
Fixes #1882836.
Prevents the gestures window from leaking. This change does exactly what was
done for the filter popup window: the popup is dismissed in onSaveInstanceState()
as it is the only place that is executed early enough to avoid the dreaded
window leak error.
Diffstat (limited to 'core')
-rw-r--r-- | core/java/android/widget/AbsListView.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/java/android/widget/AbsListView.java b/core/java/android/widget/AbsListView.java index ec02143..14a85f8 100644 --- a/core/java/android/widget/AbsListView.java +++ b/core/java/android/widget/AbsListView.java @@ -1056,11 +1056,12 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te public Parcelable onSaveInstanceState() { /* * This doesn't really make sense as the place to dismiss the - * popup, but there don't seem to be any other useful hooks + * popups, but there don't seem to be any other useful hooks * that happen early enough to keep from getting complaints * about having leaked the window. */ dismissPopup(); + dismissGesturesPopup(); Parcelable superState = super.onSaveInstanceState(); |