update:2019.04.22

fix:https
add:
This commit is contained in:
2020-04-22 18:17:51 +08:00
parent 527e626aa1
commit 524d160f10
7 changed files with 51 additions and 49 deletions

View File

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

View File

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