android:Switch statusbar mode

This commit is contained in:
pengfei.zhou 2020-02-29 15:05:04 +08:00 committed by osborn
parent d713b04d51
commit 523beaa0e1

View File

@ -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;
}