summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/MenuHelper.java
diff options
context:
space:
mode:
authorChih-Chung Chang <chihchung@google.com>2009-06-09 13:51:29 +0800
committerChih-Chung Chang <chihchung@google.com>2009-06-10 16:22:09 +0800
commitcd65be31531717fb032b7423f8d5a77df465cfca (patch)
tree27504f5425aef533371622be75a85d3f6c78c727 /src/com/android/camera/MenuHelper.java
parent7154563350337b36b0cfe386dcc27e6990e919cf (diff)
downloadLegacyCamera-cd65be31531717fb032b7423f8d5a77df465cfca.zip
LegacyCamera-cd65be31531717fb032b7423f8d5a77df465cfca.tar.gz
LegacyCamera-cd65be31531717fb032b7423f8d5a77df465cfca.tar.bz2
Share Camera between Camera and VideoCamera.
Diffstat (limited to 'src/com/android/camera/MenuHelper.java')
-rw-r--r--src/com/android/camera/MenuHelper.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/com/android/camera/MenuHelper.java b/src/com/android/camera/MenuHelper.java
index 2a9254f..1a92057 100644
--- a/src/com/android/camera/MenuHelper.java
+++ b/src/com/android/camera/MenuHelper.java
@@ -869,6 +869,11 @@ public class MenuHelper {
Intent intent = new Intent(action);
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
intent.addFlags(Intent.FLAG_ACTIVITY_FORWARD_RESULT);
+
+ // Keep the camera instance for a while.
+ // This avoids re-opening the camera and saves time.
+ CameraHolder.instance().keep();
+
activity.startActivity(intent);
return true;
}