Bug 972879 - Only dim system UI on SDK >= 14. r=lucasr
authorJosh Dover <gerfuls@gmail.com>
Tue, 18 Feb 2014 09:18:44 -0800
changeset 169795 43e07016a5bb2541c300aefb3e133098c7f559bc
parent 169794 db83824a62a79115f484d5518d527f7381872dd1
child 169796 74e8b816d0da5d15a91c60ddc7f47e743d086f6a
push id270
push userpvanderbeken@mozilla.com
push dateThu, 06 Mar 2014 09:24:21 +0000
reviewerslucasr
bugs972879
milestone30.0a1
Bug 972879 - Only dim system UI on SDK >= 14. r=lucasr
mobile/android/base/GeckoApp.java
--- a/mobile/android/base/GeckoApp.java
+++ b/mobile/android/base/GeckoApp.java
@@ -2769,16 +2769,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);
                 }