From 523beaa0e1368b871c4be4e52414ffee659b4c7e Mon Sep 17 00:00:00 2001 From: "pengfei.zhou" Date: Sat, 29 Feb 2020 15:05:04 +0800 Subject: [PATCH] android:Switch statusbar mode --- .../doric/src/main/java/pub/doric/plugin/StatusBarPlugin.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doric-android/doric/src/main/java/pub/doric/plugin/StatusBarPlugin.java b/doric-android/doric/src/main/java/pub/doric/plugin/StatusBarPlugin.java index b1a5c179..dc2dc408 100644 --- a/doric-android/doric/src/main/java/pub/doric/plugin/StatusBarPlugin.java +++ b/doric-android/doric/src/main/java/pub/doric/plugin/StatusBarPlugin.java @@ -84,9 +84,9 @@ public class StatusBarPlugin extends DoricJavaPlugin { @Override public Object call() { if (mode == 0) { - QMUIStatusBarHelper.setStatusBarLightMode((Activity) getDoricContext().getContext()); - } else { QMUIStatusBarHelper.setStatusBarDarkMode((Activity) getDoricContext().getContext()); + } else { + QMUIStatusBarHelper.setStatusBarLightMode((Activity) getDoricContext().getContext()); } return null; }