You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by st...@apache.org on 2017/02/23 00:46:57 UTC

cordova-plugin-statusbar git commit: CB-12188 Status Bar is not changing in some specific android phone (Red MI 3s Prime)

Repository: cordova-plugin-statusbar
Updated Branches:
  refs/heads/master 995e4fdf9 -> 916cccc2c


CB-12188 Status Bar is not changing in some specific android phone (Red MI 3s Prime)

 This closes #76


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-statusbar/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-statusbar/commit/916cccc2
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-statusbar/tree/916cccc2
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-statusbar/diff/916cccc2

Branch: refs/heads/master
Commit: 916cccc2c00a1b7c77e2e738c83e74a22bdd55e7
Parents: 995e4fd
Author: olln3 <jo...@gmail.com>
Authored: Thu Feb 9 08:35:45 2017 +0800
Committer: Steve Gill <st...@gmail.com>
Committed: Wed Feb 22 16:46:55 2017 -0800

----------------------------------------------------------------------
 src/android/StatusBar.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-statusbar/blob/916cccc2/src/android/StatusBar.java
----------------------------------------------------------------------
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) {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org