if (mMetadata != null && mMetadata.hasOverlayPosition()) {
mHasOverlayPosition = true;
mOverlayX = mMetadata.getXCenter();
mOverlayY = mMetadata.getYCenter();
mOverlayScaleFactor = mMetadata.getOverlayScaleFactor()
<BUG>boolean shouldBeLocked = !mMetadata.hasFlag(JpegMetadata.FLAG_OVERLAY_SET_BY_CAMERA_ACTIVITY);
lockOverlay(shouldBeLocked, false);</BUG>
if (mGuiElementUpdater != null) {
mGuiElementUpdater.setLockChecked(shouldBeLocked);
}

if (mMetadata != null && mMetadata.hasOverlayPosition()) {
mHasOverlayPosition = true;
mOverlayX = mMetadata.getXCenter();
mOverlayY = mMetadata.getYCenter();
mOverlayScaleFactor = mMetadata.getOverlayScaleFactor()
boolean shouldBeLocked = !mMetadata.hasFlag(JpegMetadata.FLAG_OVERLAY_SET_BY_CAMERA_ACTIVITY)
&& !mMetadata.hasFlag(JpegMetadata.FLAG_OVERLAY_POSITION_DETERMINED_AUTOMATICALLY);
lockOverlay(shouldBeLocked, false);
if (mGuiElementUpdater != null) {
mGuiElementUpdater.setLockChecked(shouldBeLocked);
}
