diff options
author | Wu-cheng Li <wuchengli@google.com> | 2011-09-27 15:16:41 +0800 |
---|---|---|
committer | Wu-cheng Li <wuchengli@google.com> | 2011-09-27 15:55:51 +0800 |
commit | db288b8686e5bcecef620176b934b00eb0742597 (patch) | |
tree | fdbc7e32e4a635b53a66b2efe792018796aefbab /src/com/android/camera/Camera.java | |
parent | 9c58ffd7b175c05fb99b4adfea96dd11dfe41b74 (diff) | |
download | LegacyCamera-db288b8686e5bcecef620176b934b00eb0742597.zip LegacyCamera-db288b8686e5bcecef620176b934b00eb0742597.tar.gz LegacyCamera-db288b8686e5bcecef620176b934b00eb0742597.tar.bz2 |
Clear the share popup when a new thumbnail is generated.
When a new thumbnail is generated, the share popup still keeps a
reference to the old thumbnail. Clear the share popup so the old
thumbnail can be garbage collected.
bug:5336037
Change-Id: I8de6bdb82f6f36cfb8190929f99a7c278eefe7e5
Diffstat (limited to 'src/com/android/camera/Camera.java')
-rw-r--r-- | src/com/android/camera/Camera.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/camera/Camera.java b/src/com/android/camera/Camera.java index 4c576a5..f89887d 100644 --- a/src/com/android/camera/Camera.java +++ b/src/com/android/camera/Camera.java @@ -763,6 +763,8 @@ public class Camera extends ActivityBase implements FocusManager.Listener, if (mThumbnail != null) { mThumbnailView.setBitmap(mThumbnail.getBitmap()); } + // Share popup may still have the reference to the old thumbnail. Clear it. + mSharePopup = null; Util.broadcastNewPicture(this, uri); } } |