diff options
| author | Braganza <sam.braganza@samsung.com> | 2011-09-19 18:06:03 +0530 |
|---|---|---|
| committer | Wu-cheng Li <wuchengli@google.com> | 2011-09-19 21:04:01 +0800 |
| commit | a27b8c0d0a1467994a9163df5f718002db504458 (patch) | |
| tree | 4354e6b8f07af642261d6478dd82657a6830b404 /src | |
| parent | 440bb1665b8288a6e94340d1f37b5b3e6bc0e79c (diff) | |
| download | LegacyCamera-a27b8c0d0a1467994a9163df5f718002db504458.zip LegacyCamera-a27b8c0d0a1467994a9163df5f718002db504458.tar.gz LegacyCamera-a27b8c0d0a1467994a9163df5f718002db504458.tar.bz2 | |
Initialise zoom controls in OnResume rather than OnCreate
Issue:
1. Zoom is not working after coming back from the camcorder album
Description:
Step 1: Go to Camera
Step 2: Change to Camcorder
Step 3: Zoom in
Step 4: Record->Stop
Step 5: Quick View
Step 6: Share via messaging
Step 7: Back to camcorder preview
Step 8: Try to zoom
Actual Result: After coming back for the messaging screen zoom is not working
Expected Result: Zoom should work properly
Analysis:
Zoom change listener is set to null in Camera.open. We need to set it everytime
in after camera is opened.
bug:5338478
Change-Id: I5f31504ace6fb6b6d5f76a5c9bdf28cdd7acf581
Signed-off-by: Sam <sam.braganza@samsung.com>
Diffstat (limited to 'src')
| -rwxr-xr-x[-rw-r--r--] | src/com/android/camera/VideoCamera.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/com/android/camera/VideoCamera.java b/src/com/android/camera/VideoCamera.java index 8c39f6b..f87e9b9 100644..100755 --- a/src/com/android/camera/VideoCamera.java +++ b/src/com/android/camera/VideoCamera.java @@ -448,7 +448,6 @@ public class VideoCamera extends ActivityBase mBackCameraId = CameraHolder.instance().getBackCameraId(); mFrontCameraId = CameraHolder.instance().getFrontCameraId(); - initializeZoomControl(); initializeIndicatorControl(); } @@ -822,6 +821,10 @@ public class VideoCamera extends ActivityBase return; } } + + // Initializing it here after the preview is started. + initializeZoomControl(); + keepScreenOnAwhile(); // install an intent filter to receive SD card related events. |
