1.4.0521 优化开机动画 控制主页控件显示
This commit is contained in:
@@ -12,6 +12,7 @@ import android.text.TextUtils;
|
||||
import android.util.Log;
|
||||
|
||||
import com.aoleyun.sn.BuildConfig;
|
||||
import com.aoleyun.sn.activity.main.MainActivity;
|
||||
import com.aoleyun.sn.bean.SnSetting;
|
||||
import com.aoleyun.sn.comm.CommonConfig;
|
||||
import com.aoleyun.sn.comm.JGYActions;
|
||||
@@ -67,6 +68,7 @@ public class SysSettingUtils {
|
||||
setAdminApp(context, jsonObject);
|
||||
setSystemAppDisable(context, jsonObject);
|
||||
setNotification(context, jsonObject);
|
||||
setPanelShow(context, jsonObject);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -960,7 +962,7 @@ public class SysSettingUtils {
|
||||
Settings.Global.putInt(context.getContentResolver(), CommonConfig.AOLE_APP_ALLOW_INSTALL, 1);
|
||||
setUsb(context, 0);
|
||||
setBluetoothTransmission(context, 0);
|
||||
JGYUtils.getInstance().setDeveloperOptions(0);
|
||||
// JGYUtils.getInstance().setDeveloperOptions(0);
|
||||
setCanReset(context, 0);
|
||||
setActionBar(context, 0);
|
||||
setNavigationBar(context, 0);
|
||||
@@ -1090,4 +1092,22 @@ public class SysSettingUtils {
|
||||
}
|
||||
context.sendBroadcast(intent);
|
||||
}
|
||||
|
||||
private static void setPanelShow(Context context, JsonObject jsonObject) {
|
||||
JsonElement jsonElement = jsonObject.get("is_control_show");
|
||||
if (jsonElement != null && !jsonElement.isJsonNull()) {
|
||||
int is_control_show = jsonElement.getAsInt();
|
||||
Intent intent = new Intent();
|
||||
switch (is_control_show) {
|
||||
case 1:
|
||||
intent.setAction(MainActivity.PANEL_SHOW);
|
||||
break;
|
||||
case 0:
|
||||
default:
|
||||
intent.setAction(MainActivity.PANEL_HIDE);
|
||||
break;
|
||||
}
|
||||
context.sendBroadcast(intent);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user