diff options
author | Android (Google) Code Review <android-gerrit@google.com> | 2009-05-06 09:38:08 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2009-05-06 09:38:08 -0700 |
commit | ebbf4905eb58be484f9f6c9ee9eb80257cce0b24 (patch) | |
tree | 1ad0ac4dc3e7306923bf25966552ea5ee6a9a38b /src/com/android/camera | |
parent | 453392c1c0614c0a91faf51e09adaec4a2dc66bd (diff) | |
parent | 9e0bda23b8889b2149dbf47c8ec2de788a7f2bc9 (diff) | |
download | LegacyCamera-ebbf4905eb58be484f9f6c9ee9eb80257cce0b24.zip LegacyCamera-ebbf4905eb58be484f9f6c9ee9eb80257cce0b24.tar.gz LegacyCamera-ebbf4905eb58be484f9f6c9ee9eb80257cce0b24.tar.bz2 |
Merge change 964 into donut
* changes:
Fix bug 1710951. By moving image cleanning code to onStop.
Diffstat (limited to 'src/com/android/camera')
-rw-r--r-- | src/com/android/camera/ViewImage.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/com/android/camera/ViewImage.java b/src/com/android/camera/ViewImage.java index d4281a8..ef0857f 100644 --- a/src/com/android/camera/ViewImage.java +++ b/src/com/android/camera/ViewImage.java @@ -203,6 +203,7 @@ public class ViewImage extends Activity implements View.OnClickListener { @Override protected void onDestroy() { + // This is necessary to make the ZoomButtonsController unregister // its configuration change receiver. if (mZoomButtonsController != null) { @@ -901,8 +902,8 @@ public class ViewImage extends Activity implements View.OnClickListener { } @Override - public void onResume() { - super.onResume(); + public void onStart() { + super.onStart(); BitmapManager.instance().allowAllDecoding(false); @@ -930,8 +931,8 @@ public class ViewImage extends Activity implements View.OnClickListener { } @Override - public void onPause() { - super.onPause(); + public void onStop() { + super.onStop(); BitmapManager.instance().cancelAllDecoding(); mGetter.cancelCurrent(); |