summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndreas Huber <>2009-03-24 18:39:29 -0700
committerThe Android Open Source Project <initial-contribution@android.com>2009-03-24 18:39:29 -0700
commit5ae6532b568d0be90e5b1b53178e7d7927529201 (patch)
tree4214d605f9b42d3e3e211ab1927c7e8ea7b467c4 /src
parent170a786c6d5fce3bdbb7ce4adb90639df84f25d5 (diff)
downloadLegacyCamera-5ae6532b568d0be90e5b1b53178e7d7927529201.zip
LegacyCamera-5ae6532b568d0be90e5b1b53178e7d7927529201.tar.gz
LegacyCamera-5ae6532b568d0be90e5b1b53178e7d7927529201.tar.bz2
Automated import from //branches/donutburger/...@140831,140831
Diffstat (limited to 'src')
-rw-r--r--src/com/android/camera/ViewImage.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/com/android/camera/ViewImage.java b/src/com/android/camera/ViewImage.java
index 2e777fd..1376172 100644
--- a/src/com/android/camera/ViewImage.java
+++ b/src/com/android/camera/ViewImage.java
@@ -201,6 +201,17 @@ public class ViewImage extends Activity implements View.OnClickListener
mZoomButtonsController.setZoomOutEnabled(scale > 1);
}
+ @Override
+ protected void onDestroy() {
+ // This is necessary to make the ZoomButtonsController unregister
+ // its configuration change receiver.
+ if (mZoomButtonsController != null) {
+ mZoomButtonsController.setVisible(false);
+ }
+
+ super.onDestroy();
+ }
+
private void setupZoomButtonController(View rootView) {
mGestureDetector = new GestureDetector(this, new MyGestureListener());
mZoomButtonsController = new ZoomButtonsController(rootView);