commit | 3d3da27ab394108fd51771616cca3279baae99d1 | [log] [tgz] |
---|---|---|
author | Adam Powell <adamp@google.com> | Wed Aug 11 18:06:17 2010 -0700 |
committer | Adam Powell <adamp@google.com> | Wed Aug 11 18:07:31 2010 -0700 |
tree | 25e06e316570182c82221bcc3640b04e7e46c8cb | |
parent | 943fbb4f4006273ae5983da42143d721ae05dfd4 [diff] [blame] |
Fix bug 2911529 Change-Id: I18d7f5d8a300bbc73ef721c5d4deb200d6a490b8
diff --git a/core/java/com/android/internal/view/menu/MenuPopupHelper.java b/core/java/com/android/internal/view/menu/MenuPopupHelper.java index ce0ec04..f52c93c 100644 --- a/core/java/com/android/internal/view/menu/MenuPopupHelper.java +++ b/core/java/com/android/internal/view/menu/MenuPopupHelper.java
@@ -92,7 +92,9 @@ } public void dismiss() { - mPopup.dismiss(); + if (isShowing()) { + mPopup.dismiss(); + } mPopup = null; }