summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/PhotoUI.java
diff options
context:
space:
mode:
authorSteve Kondik <steve@cyngn.com>2016-11-13 23:27:35 -0800
committerMichael Bestas <mikeioannina@gmail.com>2017-01-04 22:00:40 +0200
commit393a2d292a0b746c37ae9f131ffc9994affdaf74 (patch)
treef718e5145806b7b6d2488b9bf489d0853ebb8a8d /src/com/android/camera/PhotoUI.java
parent586c4093fdcdb5459938e45b72becd242504c75b (diff)
downloadandroid_packages_apps_Snap-393a2d292a0b746c37ae9f131ffc9994affdaf74.tar.gz
android_packages_apps_Snap-393a2d292a0b746c37ae9f131ffc9994affdaf74.tar.bz2
android_packages_apps_Snap-393a2d292a0b746c37ae9f131ffc9994affdaf74.zip
snap: UI checkpoint #2
* Fix bugs from previous commit * Factor out recording controls * Clean up layouts * Asynchronous control for video module * Performance improvements Change-Id: I9d5833cecbd9280845b740ee8a3c47f023470625
Diffstat (limited to 'src/com/android/camera/PhotoUI.java')
-rw-r--r--src/com/android/camera/PhotoUI.java13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/com/android/camera/PhotoUI.java b/src/com/android/camera/PhotoUI.java
index 38c6497b6..1e019a6a8 100644
--- a/src/com/android/camera/PhotoUI.java
+++ b/src/com/android/camera/PhotoUI.java
@@ -252,8 +252,6 @@ public class PhotoUI extends BaseUI implements PieListener,
mShutterButton = (ShutterButton) mRootView.findViewById(R.id.shutter_button);
mMenuButton = mRootView.findViewById(R.id.menu);
- mCameraControls.disableMuteButton();
-
ViewStub faceViewStub = (ViewStub) mRootView
.findViewById(R.id.face_view_stub);
if (faceViewStub != null) {
@@ -262,11 +260,8 @@ public class PhotoUI extends BaseUI implements PieListener,
setSurfaceTextureSizeChangedListener(mFaceView);
}
mFocusRing = (FocusRing) mRootView.findViewById(R.id.focus_ring);
- initIndicators();
mOrientationResize = false;
mPrevOrientationResize = false;
-
- showFirstTimeHelp();
}
public void setDownFactor(int factor) {
@@ -305,7 +300,6 @@ public class PhotoUI extends BaseUI implements PieListener,
mAspectRatioResize = true;
mAspectRatio = ratio;
}
- mCameraControls.setPreviewRatio(mAspectRatio, false);
layoutPreview(ratio);
}
@@ -580,8 +574,9 @@ public class PhotoUI extends BaseUI implements PieListener,
// called from onResume but only the first time
public void initializeFirstTime() {
+ initIndicators();
+
// Initialize shutter button.
- mShutterButton.setImageResource(R.drawable.shutter_button_anim);
mShutterButton.setImageResource(R.drawable.btn_new_shutter);
mShutterButton.setOnClickListener(new OnClickListener() {
@Override
@@ -596,6 +591,8 @@ public class PhotoUI extends BaseUI implements PieListener,
mShutterButton.addOnShutterButtonListener(mController);
mShutterButton.setVisibility(View.VISIBLE);
+
+ mCameraControls.disableMuteButton();
}
// called from onResume every other time
@@ -634,7 +631,7 @@ public class PhotoUI extends BaseUI implements PieListener,
public void updateOnScreenIndicators(Camera.Parameters params,
PreferenceGroup group, ComboPreferences prefs) {
- if (params == null || group == null) return;
+ if (params == null || group == null || mOnScreenIndicators == null) return;
mOnScreenIndicators.updateSceneOnScreenIndicator(params.getSceneMode());
mOnScreenIndicators.updateExposureOnScreenIndicator(params,
CameraSettings.readExposure(prefs));