diff options
author | Romain Guy <romainguy@android.com> | 2009-05-29 12:05:11 -0700 |
---|---|---|
committer | Romain Guy <romainguy@android.com> | 2009-05-29 12:05:11 -0700 |
commit | c51ef9702d7ccd3dac15ccaeb509d1150f0a2d7f (patch) | |
tree | 8d147eafe2b5ed67d431d877d4ef64c6c4d564af /core | |
parent | d9cc7659fa9b8544e2a3ca7b7040fbd79afdf7ea (diff) | |
download | frameworks_base-c51ef9702d7ccd3dac15ccaeb509d1150f0a2d7f.zip frameworks_base-c51ef9702d7ccd3dac15ccaeb509d1150f0a2d7f.tar.gz frameworks_base-c51ef9702d7ccd3dac15ccaeb509d1150f0a2d7f.tar.bz2 |
Fixes #1873537.
Only update the popup window when it is shown. This avoids throwing an NPE in PopupWindow.
A PopupWindow is only aware of its content view after being shown.
Diffstat (limited to 'core')
-rw-r--r-- | core/java/android/widget/AbsListView.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/widget/AbsListView.java b/core/java/android/widget/AbsListView.java index 20e2c46..f60aba3 100644 --- a/core/java/android/widget/AbsListView.java +++ b/core/java/android/widget/AbsListView.java @@ -1570,7 +1570,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te if (mInstallGesturesOverlay) { installGesturesOverlay(); positionGesturesPopup(); - } else if (mGesturesPopup != null) { + } else if (mGesturesPopup != null && mGesturesPopup.isShowing()) { mGesturesPopup.update(w, h); } } |