|
@@ -421,11 +421,12 @@ class ManageApplication : MultiDexApplication() {
|
421
|
421
|
}
|
422
|
422
|
|
423
|
423
|
/**
|
424
|
|
- * 禁止/允许 设置自动旋转屏幕 true:禁止设置自动旋转屏幕
|
|
424
|
+ * 禁止/允许 设置自动旋转屏幕
|
425
|
425
|
*/
|
426
|
426
|
fun disallowSetAutoRotation(enable: Boolean) {
|
427
|
427
|
if (ModelNameUtils.IS_LianxX505f()) {
|
428
|
|
- //csdkManager?.disallowSetAutoRotation(enable)
|
|
428
|
+ //true:允许自动旋转屏幕
|
|
429
|
+ csdkManager?.setAutoRotate(enable)
|
429
|
430
|
} else if (ModelNameUtils.IS_LianxX6e6f()) {
|
430
|
431
|
//csdkManager?.disallowSetAutoRotation(enable)
|
431
|
432
|
}
|
|
@@ -718,6 +719,16 @@ class ManageApplication : MultiDexApplication() {
|
718
|
719
|
csdkManager?.setLockScreenMode(enableFlag)
|
719
|
720
|
}
|
720
|
721
|
}
|
|
722
|
+
|
|
723
|
+ /**
|
|
724
|
+ * 505f设置护眼模式
|
|
725
|
+ */
|
|
726
|
+ fun setEnabledEyeMode(enableFlag: Boolean){
|
|
727
|
+ if (ModelNameUtils.IS_LianxX505f()||ModelNameUtils.IS_LianxX6e6f()) {
|
|
728
|
+ csdkManager?.setEnabledEyeMode(enableFlag)
|
|
729
|
+ }
|
|
730
|
+ }
|
|
731
|
+
|
721
|
732
|
}
|
722
|
733
|
|
723
|
734
|
override fun onCreate() {
|
|
@@ -726,7 +737,7 @@ class ManageApplication : MultiDexApplication() {
|
726
|
737
|
if (processName != null && processName.equals(packageName)) {
|
727
|
738
|
LogUtils.DEBUG=com.xhkjedu.manageapp.BuildConfig.IS_DEBUG
|
728
|
739
|
Const.setBaseUrl(com.xhkjedu.manageapp.BuildConfig.IS_DEBUG)
|
729
|
|
- CrashReport.initCrashReport(applicationContext, "37c72ff74c", false);
|
|
740
|
+ CrashReport.initCrashReport(applicationContext, "37c72ff74c", false)
|
730
|
741
|
instance = this
|
731
|
742
|
val spUtils = SharedPreferencesUtils.getInstance(this)
|
732
|
743
|
//获取是否已经解除管控
|