OSDN Git Service

workaround fix
authorSpike Sprague <spikuru@google.com>
Wed, 10 Sep 2014 18:31:09 +0000 (11:31 -0700)
committerSpike Sprague <spikuru@google.com>
Wed, 10 Sep 2014 22:16:38 +0000 (22:16 +0000)
change View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN to View.SYSTEM_UI_FLAG_FULLSCREEN

on L, with View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN the entire camera app window is shifted down by the height of the status bar.

with View.SYSTEM_UI_FLAG_FULLSCREEN thw window lays out correctly.

note: with either flag on KitKat the window lays out correctly.

bug: 17457492

Change-Id: I6534fcedaafbbb525967289db7fb759ba50fca42

src/com/android/camera/CameraActivity.java

index e5237d8..c8a0679 100644 (file)
@@ -248,8 +248,8 @@ public class CameraActivity extends Activity
 
     private static final int LIGHTS_OUT_DELAY_MS = 4000;
     private final int BASE_SYS_UI_VISIBILITY =
-        View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
-        | View.SYSTEM_UI_FLAG_LAYOUT_STABLE;
+            View.SYSTEM_UI_FLAG_FULLSCREEN
+            | View.SYSTEM_UI_FLAG_LAYOUT_STABLE;
     private final Runnable mLightsOutRunnable = new Runnable() {
         @Override
         public void run() {