diff options
author | Senpo Hu <senpo@google.com> | 2015-06-27 21:25:21 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-06-27 21:25:21 +0000 |
commit | dc1a777d0a7e95d461fcc6d9c28a12def38afcb0 (patch) | |
tree | f583ce69ec7c9aa01a830c055800e548f8a8fdef /src/com/android/camera/captureintent/CaptureIntentModuleUI.java | |
parent | a596ed322aacf2ba005c95d4ae536ddb5f00a6c6 (diff) | |
parent | 75dcaf3bd47ec093f5805dc422dcdd397d2d0e1a (diff) | |
download | android_packages_apps_Camera2-dc1a777d0a7e95d461fcc6d9c28a12def38afcb0.tar.gz android_packages_apps_Camera2-dc1a777d0a7e95d461fcc6d9c28a12def38afcb0.tar.bz2 android_packages_apps_Camera2-dc1a777d0a7e95d461fcc6d9c28a12def38afcb0.zip |
am 75dcaf3b: am 04a9f8b6: Merge "Fix transform issue in CaptureIntent." into ub-camera-haleakala
* commit '75dcaf3bd47ec093f5805dc422dcdd397d2d0e1a':
Fix transform issue in CaptureIntent.
Diffstat (limited to 'src/com/android/camera/captureintent/CaptureIntentModuleUI.java')
-rw-r--r-- | src/com/android/camera/captureintent/CaptureIntentModuleUI.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/com/android/camera/captureintent/CaptureIntentModuleUI.java b/src/com/android/camera/captureintent/CaptureIntentModuleUI.java index 5f518a45f..740218134 100644 --- a/src/com/android/camera/captureintent/CaptureIntentModuleUI.java +++ b/src/com/android/camera/captureintent/CaptureIntentModuleUI.java @@ -25,6 +25,7 @@ import com.android.camera.ui.PreviewStatusListener; import com.android.camera.ui.ProgressOverlay; import com.android.camera.ui.focus.FocusRing; import com.android.camera.util.AndroidServices; +import com.android.camera.util.Size; import com.android.camera2.R; import android.graphics.Bitmap; @@ -112,6 +113,13 @@ public class CaptureIntentModuleUI { } /** + * Obtains the current preview layout size. + */ + public Size getPreviewSurfaceSize() { + return new Size(mAppUI.getSurfaceWidth(), mAppUI.getSurfaceHeight()); + } + + /** * Configures the bottom bar UI. * * @param hardwareSpec The hardware spec. |