OSDN Git Service

Remove SYSTEM_UI_FLAG_LIGHT_NAV_BAR flag bit from systemUiVisibility call
authorHyunyoung Song <hyunyoungs@google.com>
Wed, 29 Jun 2016 21:03:20 +0000 (14:03 -0700)
committerHyunyoung Song <hyunyoungs@google.com>
Wed, 29 Jun 2016 21:03:20 +0000 (14:03 -0700)
Change-Id: Idf360a3580eff2ef873e7e0c20eb5ee2355d9be7

src/com/android/launcher3/allapps/AllAppsTransitionController.java

index 4c51dfe..97be4ed 100644 (file)
@@ -279,17 +279,13 @@ public class AllAppsTransitionController implements TouchController, VerticalPul
             return;
         }
         int systemUiFlags = mLauncher.getWindow().getDecorView().getSystemUiVisibility();
-        // SYSTEM_UI_FLAG_LIGHT_NAV_BAR == SYSTEM_UI_FLAG_LIGHT_STATUS_BAR << 1
-        // Use proper constant once API is submitted.
         if (enable) {
             mLauncher.getWindow().getDecorView().setSystemUiVisibility(systemUiFlags
-                    | View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR
-                    | (View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR << 1));
+                    | View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);
 
         } else {
             mLauncher.getWindow().getDecorView().setSystemUiVisibility(systemUiFlags
-                    & ~(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR
-                            |(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR << 1)));
+                    & ~(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR));
 
         }
         mLightStatusBar = enable;