diff options
author | Doris Liu <tianliu@google.com> | 2013-06-13 17:20:31 -0700 |
---|---|---|
committer | Doris Liu <tianliu@google.com> | 2013-06-18 10:16:55 -0700 |
commit | 6432cd65159731a28d9239426b0f0f4d7c44fa98 (patch) | |
tree | e233e9afc4804c6bc54d16bd6f185ed841752d0e /src/com/android/camera/ui/FaceView.java | |
parent | 608e27fb708aa24afe5790b0f0825c977a7df784 (diff) | |
download | android_packages_apps_Snap-6432cd65159731a28d9239426b0f0f4d7c44fa98.tar.gz android_packages_apps_Snap-6432cd65159731a28d9239426b0f0f4d7c44fa98.tar.bz2 android_packages_apps_Snap-6432cd65159731a28d9239426b0f0f4d7c44fa98.zip |
Switch over to use new camera activity
Change-Id: Ib907b5ab5d0e818261e95edd182f2e20c3bbebe0
Diffstat (limited to 'src/com/android/camera/ui/FaceView.java')
-rw-r--r-- | src/com/android/camera/ui/FaceView.java | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/src/com/android/camera/ui/FaceView.java b/src/com/android/camera/ui/FaceView.java index 24150497c..7d66dc079 100644 --- a/src/com/android/camera/ui/FaceView.java +++ b/src/com/android/camera/ui/FaceView.java @@ -31,9 +31,7 @@ import android.util.AttributeSet; import android.util.Log; import android.view.View; -import com.android.camera.CameraActivity; -import com.android.camera.CameraScreenNail; -import com.android.camera.NewPhotoUI; +import com.android.camera.PhotoUI; import com.android.camera.Util; import com.android.gallery3d.R; import com.android.gallery3d.common.ApiHelper; @@ -41,7 +39,7 @@ import com.android.gallery3d.common.ApiHelper; @TargetApi(ApiHelper.VERSION_CODES.ICE_CREAM_SANDWICH) public class FaceView extends View implements FocusIndicator, Rotatable, - NewPhotoUI.SurfaceTextureSizeChangedListener { + PhotoUI.SurfaceTextureSizeChangedListener { private static final String TAG = "CAM FaceView"; private final boolean LOGV = false; // The value for android.hardware.Camera.setDisplayOrientation. @@ -190,16 +188,8 @@ public class FaceView extends View protected void onDraw(Canvas canvas) { if (!mBlocked && (mFaces != null) && (mFaces.length > 0)) { int rw, rh; - if (mUncroppedWidth == 0) { - // TODO: This check is temporary. It needs to be removed after the - // refactoring is fully functioning. - final CameraScreenNail sn = ((CameraActivity) getContext()).getCameraScreenNail(); - rw = sn.getUncroppedRenderWidth(); - rh = sn.getUncroppedRenderHeight(); - } else { - rw = mUncroppedWidth; - rh = mUncroppedHeight; - } + rw = mUncroppedWidth; + rh = mUncroppedHeight; // Prepare the matrix. if (((rh > rw) && ((mDisplayOrientation == 0) || (mDisplayOrientation == 180))) || ((rw > rh) && ((mDisplayOrientation == 90) || (mDisplayOrientation == 270)))) { |