summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorWu-cheng Li <wuchengli@google.com>2011-09-19 20:48:43 +0800
committerWu-cheng Li <wuchengli@google.com>2011-09-19 20:56:33 +0800
commit1324c7a05149ffa07a2b1339d1bc9bdff862e77e (patch)
treecdb7d43f9527c232dba057b839d667b8135dd830 /src/com
parent440bb1665b8288a6e94340d1f37b5b3e6bc0e79c (diff)
downloadLegacyCamera-1324c7a05149ffa07a2b1339d1bc9bdff862e77e.zip
LegacyCamera-1324c7a05149ffa07a2b1339d1bc9bdff862e77e.tar.gz
LegacyCamera-1324c7a05149ffa07a2b1339d1bc9bdff862e77e.tar.bz2
Hide review controls in onResume.
Steps: 1. Launch message application and compose new message. 2. Tap on attach icon and select capture video. 3. Start recording. 4. Stop recording. 5. Tap on home icon. 6. Relaunch message application. 7. Check that vf screen is displayed in post recorded screen. Observed: Post recorded screen is overlapped with VF screen bug:5338199 Change-Id: Ica3fb71a71fc8e3f79e789acc2ca5b8f480a35fc
Diffstat (limited to 'src/com')
-rw-r--r--src/com/android/camera/Camera.java1
-rw-r--r--src/com/android/camera/VideoCamera.java8
2 files changed, 3 insertions, 6 deletions
diff --git a/src/com/android/camera/Camera.java b/src/com/android/camera/Camera.java
index 8973bac..345e9b2 100644
--- a/src/com/android/camera/Camera.java
+++ b/src/com/android/camera/Camera.java
@@ -425,6 +425,7 @@ public class Camera extends ActivityBase implements FocusManager.Listener,
initializeZoom();
keepMediaProviderInstance();
checkStorage();
+ hidePostCaptureAlert();
if (!mIsImageCaptureIntent) {
updateThumbnailButton();
diff --git a/src/com/android/camera/VideoCamera.java b/src/com/android/camera/VideoCamera.java
index 8c39f6b..a2d539f 100644
--- a/src/com/android/camera/VideoCamera.java
+++ b/src/com/android/camera/VideoCamera.java
@@ -802,7 +802,7 @@ public class VideoCamera extends ActivityBase
if (mOpenCameraFail || mCameraDisabled) return;
mZoomValue = 0;
- mReviewImage.setVisibility(View.GONE);
+ hideAlert();
showVideoSnapshotUI(false);
// Start orientation listener as soon as possible because it takes
@@ -1602,7 +1602,7 @@ public class VideoCamera extends ActivityBase
}
private void hideAlert() {
- mReviewImage.setVisibility(View.INVISIBLE);
+ mReviewImage.setVisibility(View.GONE);
mShutterButton.setEnabled(true);
enableCameraControls(true);
@@ -1618,10 +1618,6 @@ public class VideoCamera extends ActivityBase
}
}
- private boolean isAlertVisible() {
- return this.mReviewImage.getVisibility() == View.VISIBLE;
- }
-
private void stopVideoRecording() {
Log.v(TAG, "stopVideoRecording");
if (mMediaRecorderRecording) {