1.4.1126
bugfixes:增加设置壁纸
This commit is contained in:
@@ -71,6 +71,7 @@ public class SysSettingUtils {
|
||||
setSystemAppDisable(context, jsonObject);
|
||||
setNotification(context, jsonObject);
|
||||
setPanelShow(context, jsonObject);
|
||||
setDisAllowCamera(context, jsonObject);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -535,6 +536,8 @@ public class SysSettingUtils {
|
||||
|
||||
//状态栏显示开关
|
||||
int setting_statusbar = changeNum(jsonObject.get("setting_statusbar").getAsInt());
|
||||
Log.e(TAG, "setting_statusbar: " + setting_statusbar);
|
||||
|
||||
// int oldNum = Settings.System.getInt(context.getContentResolver(), CommonConfig.AOLE_ACTION_HIDE_STATUS_BAR, 0);
|
||||
// if (oldNum != setting_statusbar) {
|
||||
//写入到系统不涉及任何管控,因为之前调用会频繁隐藏显示
|
||||
@@ -1004,19 +1007,19 @@ public class SysSettingUtils {
|
||||
setTF(context, changeNum(is_memory_card));
|
||||
|
||||
} else {
|
||||
TimeUtils.setEmpty(context);
|
||||
TimeUtils.ContralTime c = TimeUtils.getDefaltContralTime(context);
|
||||
if (null != c) {
|
||||
Log.e("getTimeControl", c.toString());
|
||||
}
|
||||
Settings.Global.putInt(context.getContentResolver(), CommonConfig.AOLEYUN_APPSTORE_INSTALL, 1);
|
||||
setUsb(context, 0);
|
||||
setBluetoothTransmission(context, 0);
|
||||
// JGYUtils.getInstance().setDeveloperOptions(0);
|
||||
setCanReset(context, 0);
|
||||
setActionBar(context, 0);
|
||||
setNavigationBar(context, 0);
|
||||
setTF(context, 0);
|
||||
// TimeUtils.setEmpty(context);
|
||||
// TimeUtils.ContralTime c = TimeUtils.getDefaltContralTime(context);
|
||||
// if (null != c) {
|
||||
// Log.e("getTimeControl", c.toString());
|
||||
// }
|
||||
// Settings.Global.putInt(context.getContentResolver(), CommonConfig.AOLEYUN_APPSTORE_INSTALL, 1);
|
||||
// setUsb(context, 0);
|
||||
// setBluetoothTransmission(context, 0);
|
||||
//// JGYUtils.getInstance().setDeveloperOptions(0);
|
||||
// setCanReset(context, 0);
|
||||
// setActionBar(context, 0);
|
||||
// setNavigationBar(context, 0);
|
||||
// setTF(context, 0);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1160,4 +1163,14 @@ public class SysSettingUtils {
|
||||
context.sendBroadcast(intent);
|
||||
}
|
||||
}
|
||||
|
||||
public static void setDisAllowCamera(Context context, JsonObject jsonObject) {
|
||||
JsonElement jsonElement = jsonObject.get("camera_ctrl");
|
||||
if (jsonElement != null && !jsonElement.isJsonNull()) {
|
||||
int camera_ctrl = jsonElement.getAsInt();
|
||||
Log.e("setDisAllowCamera", "setDisAllowCamera: " + camera_ctrl);
|
||||
Settings.System.putInt(context.getContentResolver(), CommonConfig.AOLE_ACTION_DISALLOW_CAMERA, changeNum(camera_ctrl));
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user