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) {