summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/com/android/camera/FocusOverlayManager.java1
-rwxr-xr-xsrc/com/android/camera/PhotoModule.java2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/camera/FocusOverlayManager.java b/src/com/android/camera/FocusOverlayManager.java
index 2d22275..287890c 100644
--- a/src/com/android/camera/FocusOverlayManager.java
+++ b/src/com/android/camera/FocusOverlayManager.java
@@ -180,6 +180,7 @@ public class FocusOverlayManager {
public void setPreviewRect(Rect previewRect) {
if (!mPreviewRect.equals(previewRect)) {
mPreviewRect.set(previewRect);
+ mFocusRing.configurePreviewDimensions(CameraUtil.rectToRectF(mPreviewRect));
resetCoordinateTransformer();
mInitialized = true;
}
diff --git a/src/com/android/camera/PhotoModule.java b/src/com/android/camera/PhotoModule.java
index aae6279..97b57c2 100755
--- a/src/com/android/camera/PhotoModule.java
+++ b/src/com/android/camera/PhotoModule.java
@@ -2828,7 +2828,7 @@ public class PhotoModule
if (mFocusManager == null) {
mFocusManager = new FocusOverlayManager(mPreferences, defaultFocusModes,
mInitialParams, this, mMirror,
- mActivity.getMainLooper(), mUI != null ? mUI.getFocusRing() : null, mActivity);
+ mActivity.getMainLooper(), mUI.getFocusRing(), mActivity);
}
}
}