diff options
author | Wu-cheng Li <wuchengli@google.com> | 2009-06-18 14:35:28 +0800 |
---|---|---|
committer | Wu-cheng Li <wuchengli@google.com> | 2009-06-18 15:32:08 +0800 |
commit | 55319ceeef829274a95e2a41e7e365228acf5ccd (patch) | |
tree | 5f8b2befa228727acd4cc33501e8257e889559f5 /src/com/android/camera/VideoCamera.java | |
parent | 3339d68b7e7f5551072d20a64fb802ecccb0c422 (diff) | |
download | LegacyCamera-55319ceeef829274a95e2a41e7e365228acf5ccd.zip LegacyCamera-55319ceeef829274a95e2a41e7e365228acf5ccd.tar.gz LegacyCamera-55319ceeef829274a95e2a41e7e365228acf5ccd.tar.bz2 |
Reduce the latency to enter camera setting.
Diffstat (limited to 'src/com/android/camera/VideoCamera.java')
-rw-r--r-- | src/com/android/camera/VideoCamera.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/camera/VideoCamera.java b/src/com/android/camera/VideoCamera.java index 67a4d9d..043ed54 100644 --- a/src/com/android/camera/VideoCamera.java +++ b/src/com/android/camera/VideoCamera.java @@ -967,6 +967,10 @@ public class VideoCamera extends Activity implements View.OnClickListener, R.string.settings) .setOnMenuItemClickListener(new OnMenuItemClickListener() { public boolean onMenuItemClick(MenuItem item) { + // Keep the camera instance for a while. + // This avoids re-opening the camera and saves time. + CameraHolder.instance().keep(); + Intent intent = new Intent(); intent.setClass(VideoCamera.this, CameraSettings.class); startActivity(intent); |