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, StepService.class));
startService(new Intent(context, GuardService.class)); startService(new Intent(context, GuardService.class));
startService(new Intent(context, LogcatService.class)); startService(new Intent(context, LogcatService.class));
// if (JGYUtils.getInstance().checkAppPlatform() == JGYUtils.ZhanruiPlatform) { if (JGYUtils.getInstance().checkAppPlatform() == JGYUtils.ZhanruiPlatform) {
// int setting_statusbar = Settings.System.getInt(context.getContentResolver(), "qch_hide_statusBar", 0); int setting_statusbar = Settings.System.getInt(context.getContentResolver(), "qch_hide_statusBar", 0);
// String statusbarStatus = ""; String statusbarStatus = "";
// switch (setting_statusbar) { switch (setting_statusbar) {
// case 0: case 0:
// statusbarStatus = "qch_show_statusBar"; statusbarStatus = "qch_show_statusBar";
// break; break;
// case 1: case 1:
// statusbarStatus = "qch_hide_statusBar"; statusbarStatus = "qch_hide_statusBar";
// break; break;
// } }
// Intent navIntent = new Intent(statusbarStatus).setPackage("com.android.systemui"); Intent navIntent = new Intent(statusbarStatus).setPackage("com.android.systemui");
// context.sendBroadcast(navIntent); context.sendBroadcast(navIntent);
// } }
} }
break; break;
case Intent.ACTION_SCREEN_ON: { case Intent.ACTION_SCREEN_ON: {