diff options
author | Chung-yih Wang <cywang@google.com> | 2011-11-22 12:25:55 +0800 |
---|---|---|
committer | Chung-yih Wang <cywang@google.com> | 2011-11-22 21:15:33 +0800 |
commit | 749d056cd82ebfe6e613596d9e22dd355aeeec41 (patch) | |
tree | d958e55ae33c14faef12b55b3b2fc6d70b0bc35c /src/com/android/camera/panorama | |
parent | 27e33de8b2ee085b4f4136d28eec2ef6e9662fa7 (diff) | |
download | packages_apps_LegacyCamera-749d056cd82ebfe6e613596d9e22dd355aeeec41.zip packages_apps_LegacyCamera-749d056cd82ebfe6e613596d9e22dd355aeeec41.tar.gz packages_apps_LegacyCamera-749d056cd82ebfe6e613596d9e22dd355aeeec41.tar.bz2 |
Dismiss open menu if exists.
bug:5648754
Change-Id: I44be2226e65de76e6240adc7b554e0ee7cda2226
Diffstat (limited to 'src/com/android/camera/panorama')
-rwxr-xr-x | src/com/android/camera/panorama/PanoramaActivity.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/com/android/camera/panorama/PanoramaActivity.java b/src/com/android/camera/panorama/PanoramaActivity.java index d446e41..1a5a5aa 100755 --- a/src/com/android/camera/panorama/PanoramaActivity.java +++ b/src/com/android/camera/panorama/PanoramaActivity.java @@ -30,6 +30,7 @@ import com.android.camera.ShutterButton; import com.android.camera.Storage; import com.android.camera.Thumbnail; import com.android.camera.Util; +import com.android.camera.ui.PopupManager; import com.android.camera.ui.Rotatable; import com.android.camera.ui.RotateImageView; import com.android.camera.ui.RotateLayout; @@ -1002,9 +1003,13 @@ public class PanoramaActivity extends ActivityBase implements keepScreenOnAwhile(); } catch (CameraHardwareException e) { Util.showErrorAndFinish(this, R.string.cannot_connect_camera); + return; } catch (CameraDisabledException e) { Util.showErrorAndFinish(this, R.string.camera_disabled); + return; } + // Dismiss open menu if exists. + PopupManager.getInstance(this).notifyShowPopup(null); } /** |