summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/ui/CameraRootView.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/camera/ui/CameraRootView.java')
-rw-r--r--src/com/android/camera/ui/CameraRootView.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/com/android/camera/ui/CameraRootView.java b/src/com/android/camera/ui/CameraRootView.java
index 49a157568..35a585e92 100644
--- a/src/com/android/camera/ui/CameraRootView.java
+++ b/src/com/android/camera/ui/CameraRootView.java
@@ -43,9 +43,6 @@ public class CameraRootView extends FrameLayout {
private Object mDisplayListener;
private MyDisplayListener mListener;
- // Hideybars are available on K and up.
- private static final boolean HIDEYBARS_ENABLED = CameraActivity.isKitKatOrHigher();
-
public interface MyDisplayListener {
public void onDisplayChanged();
}
@@ -59,7 +56,7 @@ public class CameraRootView extends FrameLayout {
@Override
protected boolean fitSystemWindows(Rect insets) {
- if (!HIDEYBARS_ENABLED) {
+ if (!ApiHelper.HAS_HIDEYBARS) {
mCurrentInsets = insets;
// insets include status bar, navigation bar, etc
// In this case, we are only concerned with the size of nav bar