summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/captureintent/CaptureIntentModuleUI.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/camera/captureintent/CaptureIntentModuleUI.java')
-rw-r--r--src/com/android/camera/captureintent/CaptureIntentModuleUI.java8
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.