version:2.1.0

update:解锁屏幕时发送状态栏状态
fix:
add:
This commit is contained in:
2021-06-03 18:06:34 +08:00
parent ee11b63068
commit c257c9a2cf

View File

@@ -287,20 +287,20 @@ public class GuardService extends Service {
startService(new Intent(context, StepService.class));
startService(new Intent(context, GuardService.class));
startService(new Intent(context, LogcatService.class));
// if (JGYUtils.getInstance().checkAppPlatform() == JGYUtils.ZhanruiPlatform) {
// int setting_statusbar = Settings.System.getInt(context.getContentResolver(), "qch_hide_statusBar", 0);
// String statusbarStatus = "";
// switch (setting_statusbar) {
// case 0:
// statusbarStatus = "qch_show_statusBar";
// break;
// case 1:
// statusbarStatus = "qch_hide_statusBar";
// break;
// }
// Intent navIntent = new Intent(statusbarStatus).setPackage("com.android.systemui");
// context.sendBroadcast(navIntent);
// }
if (JGYUtils.getInstance().checkAppPlatform() == JGYUtils.ZhanruiPlatform) {
int setting_statusbar = Settings.System.getInt(context.getContentResolver(), "qch_hide_statusBar", 0);
String statusbarStatus = "";
switch (setting_statusbar) {
case 0:
statusbarStatus = "qch_show_statusBar";
break;
case 1:
statusbarStatus = "qch_hide_statusBar";
break;
}
Intent navIntent = new Intent(statusbarStatus).setPackage("com.android.systemui");
context.sendBroadcast(navIntent);
}
}
break;
case Intent.ACTION_SCREEN_ON: {