diff options
author | Wei-Ta Chen <weita@google.com> | 2010-02-24 11:34:22 +0800 |
---|---|---|
committer | Wei-Ta Chen <weita@google.com> | 2010-02-24 13:56:57 +0800 |
commit | b6be8b6567cc7d758ce58bc8ba1b05e1e9debfae (patch) | |
tree | 11ccd133c62ce0baa48cab9241636d933cf05592 /src | |
parent | 17110a78c70e7f6112df64955023ccabc800439d (diff) | |
download | LegacyCamera-b6be8b6567cc7d758ce58bc8ba1b05e1e9debfae.zip LegacyCamera-b6be8b6567cc7d758ce58bc8ba1b05e1e9debfae.tar.gz LegacyCamera-b6be8b6567cc7d758ce58bc8ba1b05e1e9debfae.tar.bz2 |
Enable enter and exit animations; and use overridePendingTransition
for disabling animations in switching VideoCamera and Camera.
Bug: 2416396
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/camera/MenuHelper.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/camera/MenuHelper.java b/src/com/android/camera/MenuHelper.java index e2d6d78..4cdc912 100644 --- a/src/com/android/camera/MenuHelper.java +++ b/src/com/android/camera/MenuHelper.java @@ -101,6 +101,8 @@ public class MenuHelper { */ public static final int RESULT_COMMON_MENU_CROP = 490; + private static final int NO_ANIMATION = 0; + public interface MenuItemsResult { public void gettingReadyToOpen(Menu menu, IImage image); public void aboutToCall(MenuItem item, IImage image); @@ -918,6 +920,7 @@ public class MenuHelper { CameraHolder.instance().keep(); activity.startActivity(intent); + activity.overridePendingTransition(NO_ANIMATION, NO_ANIMATION); } public static void gotoVideoMode(Activity activity) { |