Browse Source

1.修改设备设置条件判断

20241218TB223FC(测试jar包)
wangwanlei 9 months ago
parent
commit
9dbd0d3f10
1 changed files with 15 additions and 15 deletions
  1. 15
    15
      app/src/main/java/com/xhly/manageapp/utils/StrategyUtils.kt

+ 15
- 15
app/src/main/java/com/xhly/manageapp/utils/StrategyUtils.kt View File

@@ -236,36 +236,36 @@ object StrategyUtils {
236 236
                 if (schoolDeviceSetBean.simcard == 0 && (appinfo.packageName.equals(Const.ANDROIDPHONE) || appinfo.packageName.equals(Const.ANDROIDMMS))) {
237 237
                     return@forEach
238 238
                 }
239
-                //日历:1是0否
240
-                if (schoolDeviceSetBean.calendar == 0 && appinfo.packageName.equals(Const.ANDROIDCALENDAR)) {
239
+                //是否隐藏日历:1是0否
240
+                if (schoolDeviceSetBean.calendar == 1 && appinfo.packageName.equals(Const.ANDROIDCALENDAR)) {
241 241
                     return@forEach
242 242
                 }
243
-                //闹钟:1是0否
244
-                if (schoolDeviceSetBean.alarmClock == 0 && appinfo.packageName.equals(Const.ANDROIDDESKCLOCK)) {
243
+                //是否隐藏闹钟:1是0否
244
+                if (schoolDeviceSetBean.alarmClock == 1 && appinfo.packageName.equals(Const.ANDROIDDESKCLOCK)) {
245 245
                     return@forEach
246 246
                 }
247
-                //相机:1是0否
248
-                if (schoolDeviceSetBean.camera == 0 && appinfo.packageName.equals(Const.ANDROIDCAMERA)) {
247
+                //是否隐藏相机:1是0否
248
+                if (schoolDeviceSetBean.camera == 1 && appinfo.packageName.equals(Const.ANDROIDCAMERA)) {
249 249
                     return@forEach
250 250
                 }
251
-                //相册:1是0否
252
-                if (schoolDeviceSetBean.gallery == 0 && appinfo.packageName.equals(Const.ANDROIDGALLERY)) {
251
+                //是否隐藏相册:1是0否
252
+                if (schoolDeviceSetBean.gallery == 1 && appinfo.packageName.equals(Const.ANDROIDGALLERY)) {
253 253
                     return@forEach
254 254
                 }
255 255
             }
256
-            //一键加速:1是0否
257
-            if (schoolDeviceSetBean.accelerate==0&&appinfo.packageName.equals(Const.CUSTOMSPEEDAPP)){
256
+            //是否隐藏一键加速:1是0否
257
+            if (schoolDeviceSetBean.accelerate==1&&appinfo.packageName.equals(Const.CUSTOMSPEEDAPP)){
258 258
                 return@forEach
259 259
             }
260
-            //清理缓存:1是0否
261
-            if (schoolDeviceSetBean.cleanup==0&&appinfo.packageName.equals(Const.CUSTOMCLEARAPP)){
260
+            //是否隐藏清理缓存:1是0否
261
+            if (schoolDeviceSetBean.cleanup==1&&appinfo.packageName.equals(Const.CUSTOMCLEARAPP)){
262 262
                 return@forEach
263 263
             }
264
-            //自动旋转:1是0否
265
-            if (schoolDeviceSetBean.rotateSetting==0&&appinfo.packageName.equals(Const.CUSTOMROTATIONAPP)){
264
+            //是否隐藏自动旋转:1是0否
265
+            if (schoolDeviceSetBean.rotateSetting==1&&appinfo.packageName.equals(Const.CUSTOMROTATIONAPP)){
266 266
                 return@forEach
267 267
             }
268
-            //修改密码
268
+            //是否隐藏修改密码
269 269
             if (schoolDeviceSetBean.changePwd==0&&appinfo.packageName.equals(Const.CUSTOMCHANGEPSD)){
270 270
                 return@forEach
271 271
             }

Loading…
Cancel
Save