Bug 972879 - Only dim system UI on SDK >= 14. r=lucasr, a=sledru
authorJosh Dover <gerfuls@gmail.com>
Tue, 18 Feb 2014 09:18:44 -0800
changeset 182929 c64d2970839019aad11f8c62ac5098059ee820cc
parent 182928 b2a10b07adba69c4417c2e0dd123abe6450f799f
child 182930 98352d9e9067c76ae3d8c33ca7e0053c1927dcb5
push id3343
push userffxbld
push dateMon, 17 Mar 2014 21:55:32 +0000
treeherdermozilla-beta@2f7d3415f79f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerslucasr, sledru
bugs972879
milestone29.0a2
Bug 972879 - Only dim system UI on SDK >= 14. r=lucasr, a=sledru
mobile/android/base/GeckoApp.java
--- a/mobile/android/base/GeckoApp.java
+++ b/mobile/android/base/GeckoApp.java
@@ -2781,16 +2781,20 @@ public abstract class GeckoApp
             public void run() {
                 GeckoApp.this.doRestart();
                 GeckoApp.this.finish();
             }
         });
     }
 
     private void setSystemUiVisible(final boolean visible) {
+        if (Build.VERSION.SDK_INT < 14) {
+            return;
+        }
+
         ThreadUtils.postToUiThread(new Runnable() {
             @Override
             public void run() {
                 if (visible) {
                     mMainLayout.setSystemUiVisibility(View.SYSTEM_UI_FLAG_VISIBLE);
                 } else {
                     mMainLayout.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE);
                 }