summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/BaseUI.java
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2016-11-29 13:34:34 +0100
committerMichael Bestas <mikeioannina@gmail.com>2016-12-23 00:33:27 -0800
commit2bf3a05c66d350e253956503a9388946c1be1c1c (patch)
treecd665058b5a1485d8797087b43515c0bd9f58ef4 /src/com/android/camera/BaseUI.java
parent3acc722b184214a4cd76f7ef77b12658297e1f87 (diff)
downloadandroid_packages_apps_Snap-2bf3a05c66d350e253956503a9388946c1be1c1c.tar.gz
android_packages_apps_Snap-2bf3a05c66d350e253956503a9388946c1be1c1c.tar.bz2
android_packages_apps_Snap-2bf3a05c66d350e253956503a9388946c1be1c1c.zip
Use transparent navigation bar.
Ensures a 16:9 preview isn't scaled on a 16:9 screen just due to the navigation bar being shown. Change-Id: I7ca7778b0405d3e9ac7ae1db3e7a56cacd703e3b
Diffstat (limited to 'src/com/android/camera/BaseUI.java')
-rw-r--r--src/com/android/camera/BaseUI.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/com/android/camera/BaseUI.java b/src/com/android/camera/BaseUI.java
index 4dad158d1..40b97e4c0 100644
--- a/src/com/android/camera/BaseUI.java
+++ b/src/com/android/camera/BaseUI.java
@@ -24,6 +24,7 @@ import android.view.View;
import android.view.ViewGroup;
import com.android.camera.ui.CameraControls;
+import com.android.camera.ui.CameraRootView;
import com.android.camera.ui.CaptureAnimationOverlay;
import com.android.camera.ui.ModuleSwitcher;
import com.android.camera.ui.RecordingTime;
@@ -46,7 +47,7 @@ public abstract class BaseUI {
protected final View mPreviewCover;
protected final CameraActivity mActivity;
- protected final ViewGroup mRootView;
+ protected final CameraRootView mRootView;
protected final CameraControls mCameraControls;
protected final RecordingTime mRecordingTime;
@@ -63,7 +64,7 @@ public abstract class BaseUI {
public BaseUI(CameraActivity activity, ViewGroup rootView, int layout) {
mActivity = activity;
- mRootView = rootView;
+ mRootView = (CameraRootView) rootView;
mActivity.getLayoutInflater().inflate(layout, mRootView, true);