diff options
-rw-r--r-- | src/com/android/camera/Camera.java | 9 | ||||
-rw-r--r-- | src/com/android/camera/VideoCamera.java | 6 |
2 files changed, 7 insertions, 8 deletions
diff --git a/src/com/android/camera/Camera.java b/src/com/android/camera/Camera.java index 67ac246..5ae43da 100644 --- a/src/com/android/camera/Camera.java +++ b/src/com/android/camera/Camera.java @@ -1011,11 +1011,10 @@ public class Camera extends ActivityBase implements View.OnClickListener, if (mIsImageCaptureIntent) { setupCaptureParams(); - View reviewControl = findViewById(R.id.review_control); - reviewControl.setVisibility(View.VISIBLE); - reviewControl.findViewById(R.id.btn_cancel).setOnClickListener(this); - reviewControl.findViewById(R.id.btn_retake).setOnClickListener(this); - reviewControl.findViewById(R.id.btn_done).setOnClickListener(this); + findViewById(R.id.review_control).setVisibility(View.VISIBLE); + findViewById(R.id.btn_cancel).setOnClickListener(this); + findViewById(R.id.btn_retake).setOnClickListener(this); + findViewById(R.id.btn_done).setOnClickListener(this); } else { mSwitcher = (SwitcherSet) findViewById(R.id.camera_switch); mSwitcher.setVisibility(View.VISIBLE); diff --git a/src/com/android/camera/VideoCamera.java b/src/com/android/camera/VideoCamera.java index f51a370..ec279cc 100644 --- a/src/com/android/camera/VideoCamera.java +++ b/src/com/android/camera/VideoCamera.java @@ -371,10 +371,10 @@ public class VideoCamera extends ActivityBase mReviewControl = findViewById(R.id.review_control); mReviewControl.setVisibility(View.VISIBLE); - mReviewControl.findViewById(R.id.btn_cancel).setOnClickListener(this); - mReviewControl.findViewById(R.id.btn_done).setOnClickListener(this); + findViewById(R.id.btn_cancel).setOnClickListener(this); + findViewById(R.id.btn_done).setOnClickListener(this); findViewById(R.id.btn_play).setOnClickListener(this); - View retake = mReviewControl.findViewById(R.id.btn_retake); + View retake = findViewById(R.id.btn_retake); retake.setOnClickListener(this); if (retake instanceof ImageView) { ((ImageView) retake).setImageResource(R.drawable.btn_ic_review_retake_video); |