Fix bug 1710951. By moving image cleanning code to onStop.
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 @@
 
     @Override
     protected void onDestroy() {
+
         // This is necessary to make the ZoomButtonsController unregister
         // its configuration change receiver.
         if (mZoomButtonsController != null) {
@@ -901,8 +902,8 @@
     }
 
     @Override
-    public void onResume() {
-        super.onResume();
+    public void onStart() {
+        super.onStart();
 
         BitmapManager.instance().allowAllDecoding(false);
 
@@ -930,8 +931,8 @@
     }
 
     @Override
-    public void onPause() {
-        super.onPause();
+    public void onStop() {
+        super.onStop();
         BitmapManager.instance().cancelAllDecoding();
 
         mGetter.cancelCurrent();