update:2019.04.22
fix:https add:
This commit is contained in:
@@ -30,8 +30,8 @@ public class BootReceiver extends BroadcastReceiver {
|
||||
|| intent.getAction().equals("android.intent.action.DATE_CHANGED")
|
||||
|| intent.getAction().equals("android.intent.action.TIME_TICK")
|
||||
|| intent.getAction().equals("android.intent.action.USER_PRESENT")
|
||||
|| intent.getAction().equals("android.intent.action.ACTION_SCREEN_ON")
|
||||
|| intent.getAction().equals("android.intent.action.ACTION_SCREEN_OFF")
|
||||
|| intent.getAction().equals("android.intent.action.SCREEN_ON")
|
||||
|| intent.getAction().equals("android.intent.action.SCREEN_OFF")
|
||||
) {
|
||||
Log.e("fht", "BootReceiver MSG" + intent.getAction());
|
||||
context.startService(new Intent(context, InitJpushServer.class));
|
||||
|
||||
@@ -131,19 +131,19 @@ public class MyJPushReceiver extends BroadcastReceiver {
|
||||
}
|
||||
|
||||
//otg开关
|
||||
int setting_otg = changeNum(data.optInt("setting_otg"));
|
||||
Log.e("SystemSetting", "setting_otg---------" + setting_otg);
|
||||
String otgStatus = "";
|
||||
switch (setting_otg) {
|
||||
case 0:
|
||||
otgStatus = "qch_otg_open";
|
||||
break;
|
||||
case 1:
|
||||
otgStatus = "qch_otg_forbid";
|
||||
break;
|
||||
}
|
||||
Intent otgIntent = new Intent(otgStatus);
|
||||
mContext.sendBroadcast(otgIntent);
|
||||
// int setting_otg = changeNum(data.optInt("setting_otg"));
|
||||
// Log.e("SystemSetting", "setting_otg---------" + setting_otg);
|
||||
// String otgStatus = "";
|
||||
// switch (setting_otg) {
|
||||
// case 0:
|
||||
// otgStatus = "qch_otg_open";
|
||||
// break;
|
||||
// case 1:
|
||||
// otgStatus = "qch_otg_forbid";
|
||||
// break;
|
||||
// }
|
||||
// Intent otgIntent = new Intent(otgStatus);
|
||||
// mContext.sendBroadcast(otgIntent);
|
||||
|
||||
//蓝牙开关
|
||||
int setting_bluetooth = changeNum(data.optInt("setting_bluetooth"));
|
||||
@@ -174,7 +174,7 @@ public class MyJPushReceiver extends BroadcastReceiver {
|
||||
|
||||
//状态栏显示开关
|
||||
int setting_statusbar = changeNum(data.optInt("setting_statusbar"));
|
||||
int oldNum = Settings.System.getInt(mContext.getContentResolver(), "qch_hide_statusBar", 1);
|
||||
int oldNum = Settings.System.getInt(mContext.getContentResolver(), "qch_hide_statusBar", 0);
|
||||
if (oldNum != setting_statusbar) {
|
||||
boolean qch_hide_statusBar = Settings.System.putInt(mContext.getContentResolver(), "qch_hide_statusBar", setting_statusbar);
|
||||
Log.e("SystemSetting", "qch_hide_statusBar---------" + qch_hide_statusBar);
|
||||
|
||||
Reference in New Issue
Block a user