From 916cccc2c00a1b7c77e2e738c83e74a22bdd55e7 Mon Sep 17 00:00:00 2001 From: olln3 Date: Thu, 9 Feb 2017 08:35:45 +0800 Subject: [PATCH] CB-12188 Status Bar is not changing in some specific android phone (Red MI 3s Prime) This closes #76 --- src/android/StatusBar.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/android/StatusBar.java b/src/android/StatusBar.java index 294a5db..6c99d78 100644 --- a/src/android/StatusBar.java +++ b/src/android/StatusBar.java @@ -154,7 +154,7 @@ public class StatusBar extends CordovaPlugin { window.addFlags(0x80000000); // SDK 21: WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS); try { // Using reflection makes sure any 5.0+ device will work without having to compile with SDK level 21 - window.getClass().getDeclaredMethod("setStatusBarColor", int.class).invoke(window, Color.parseColor(colorPref)); + window.getClass().getMethod("setStatusBarColor", int.class).invoke(window, Color.parseColor(colorPref)); } catch (IllegalArgumentException ignore) { LOG.e(TAG, "Invalid hexString argument, use f.i. '#999999'"); } catch (Exception ignore) {