summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/ui/SharePopup.java
diff options
context:
space:
mode:
authorChung-yih Wang <cywang@google.com>2011-09-29 11:05:38 +0800
committerChung-yih Wang <cywang@google.com>2011-09-30 15:02:45 +0800
commit5f6e354a6e2a77aa935fcefeb33a9baa67d48aaf (patch)
tree824996158940ae6faf7e64423cf65d4f27bd2ac9 /src/com/android/camera/ui/SharePopup.java
parenta11e8424441d555994e76fb27c9b34f8b75fa46e (diff)
downloadLegacyCamera-5f6e354a6e2a77aa935fcefeb33a9baa67d48aaf.zip
LegacyCamera-5f6e354a6e2a77aa935fcefeb33a9baa67d48aaf.tar.gz
LegacyCamera-5f6e354a6e2a77aa935fcefeb33a9baa67d48aaf.tar.bz2
Fix the single popup issue.
bug:5169941 Popups should not persist when another is opened. +Rename the confusing PopupChange listener. Change-Id: Idca3218c090c8d9d176dbb97d8077dcc27409368
Diffstat (limited to 'src/com/android/camera/ui/SharePopup.java')
-rw-r--r--src/com/android/camera/ui/SharePopup.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/com/android/camera/ui/SharePopup.java b/src/com/android/camera/ui/SharePopup.java
index 9397591..c3934c5 100644
--- a/src/com/android/camera/ui/SharePopup.java
+++ b/src/com/android/camera/ui/SharePopup.java
@@ -199,6 +199,13 @@ public class SharePopup extends PopupWindow implements View.OnClickListener,
}
@Override
+ public void showAtLocation(View parent, int gravity, int x, int y) {
+ super.showAtLocation(parent, gravity, x, y);
+ // Inform other popup to dismiss if exit
+ PopupManager.getInstance(mContext).notifyShowPopup(null);
+ }
+
+ @Override
public void onClick(View v) {
switch (v.getId()) {
case R.id.share_view: