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/03/03 00:48:48 UTC
[7/8] cordova-plugin-statusbar git commit: CB-12188 Status Bar is not
changing in some specific android phone (Red MI 3s Prime)
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/603354a1
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-statusbar/tree/603354a1
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-statusbar/diff/603354a1
Branch: refs/heads/2.2.x
Commit: 603354a13278b3bb7b10f8e695d7f8205b2b446c
Parents: dfe5481
Author: olln3 <jo...@gmail.com>
Authored: Thu Feb 9 08:35:45 2017 +0800
Committer: Steve Gill <st...@gmail.com>
Committed: Thu Mar 2 16:48:19 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/603354a1/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