Browse Source

1.添加TB223FC机型的相机和图库判断。

20241218TB223FC
wangwanlei 1 week ago
parent
commit
4d73132f66

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

265
                 if (schoolDeviceSetBean.camera == 1 && appinfo.packageName.equals(Const.ANDROIDCAMERA6)) {
265
                 if (schoolDeviceSetBean.camera == 1 && appinfo.packageName.equals(Const.ANDROIDCAMERA6)) {
266
                     return@forEach
266
                     return@forEach
267
                 }
267
                 }
268
+                //是否隐藏相机:1是0否 TB223FC
269
+                if (schoolDeviceSetBean.camera == 1 && appinfo.packageName.equals(Const.ANDROIDCAMERATB223FC)) {
270
+                    return@forEach
271
+                }
268
                 //是否隐藏相册:1是0否(505f)
272
                 //是否隐藏相册:1是0否(505f)
269
                 if (schoolDeviceSetBean.gallery == 1 && appinfo.packageName.equals(Const.ANDROIDGALLERY)) {
273
                 if (schoolDeviceSetBean.gallery == 1 && appinfo.packageName.equals(Const.ANDROIDGALLERY)) {
270
                     return@forEach
274
                     return@forEach
273
                 if (schoolDeviceSetBean.gallery == 1 && appinfo.packageName.equals(Const.ANDROIDGALLERY6)) {
277
                 if (schoolDeviceSetBean.gallery == 1 && appinfo.packageName.equals(Const.ANDROIDGALLERY6)) {
274
                     return@forEach
278
                     return@forEach
275
                 }
279
                 }
280
+                if (schoolDeviceSetBean.gallery == 1 && appinfo.packageName.equals(Const.ANDROIDGALLERYTB223FC)) {
281
+                    return@forEach
282
+                }
283
+
276
             }
284
             }
277
             //是否隐藏一键加速:1是0否
285
             //是否隐藏一键加速:1是0否
278
             if (schoolDeviceSetBean.accelerate==1&&appinfo.packageName.equals(Const.CUSTOMSPEEDAPP)){
286
             if (schoolDeviceSetBean.accelerate==1&&appinfo.packageName.equals(Const.CUSTOMSPEEDAPP)){

+ 15
- 1
corelib/src/main/java/com/xhly/corelib/Const.kt View File

301
      */
301
      */
302
     const val ANDROIDCAMERA6 = "com.dtab.camera"
302
     const val ANDROIDCAMERA6 = "com.dtab.camera"
303
 
303
 
304
+    /**
305
+     * 联想相机TB223FC
306
+     */
307
+    const val ANDROIDCAMERATB223FC = "com.lenovotab.camera"
308
+
304
     /**
309
     /**
305
      * 联想相册505f
310
      * 联想相册505f
306
      */
311
      */
310
      */
315
      */
311
     const val ANDROIDGALLERY6 = "com.android.gallery3d"
316
     const val ANDROIDGALLERY6 = "com.android.gallery3d"
312
 
317
 
318
+    /**
319
+     * 联想相册TB223FC
320
+     */
321
+    const val ANDROIDGALLERYTB223FC = "com.zui.gallery"
322
+
313
     /**
323
     /**
314
      * 联想设置包名
324
      * 联想设置包名
315
      */
325
      */
379
         ANDROIDDESKCLOCK,
389
         ANDROIDDESKCLOCK,
380
         ANDROIDCAMERA,
390
         ANDROIDCAMERA,
381
         ANDROIDCAMERA6,
391
         ANDROIDCAMERA6,
392
+        ANDROIDCAMERATB223FC,
382
         ANDROIDGALLERY,
393
         ANDROIDGALLERY,
383
-        ANDROIDGALLERY6
394
+        ANDROIDGALLERY6,
395
+        ANDROIDGALLERYTB223FC
384
     )
396
     )
385
 
397
 
386
     /**
398
     /**
393
         ANDROIDDESKCLOCK,
405
         ANDROIDDESKCLOCK,
394
         ANDROIDCAMERA,
406
         ANDROIDCAMERA,
395
         ANDROIDCAMERA6,
407
         ANDROIDCAMERA6,
408
+        ANDROIDCAMERATB223FC,
396
         ANDROIDGALLERY,
409
         ANDROIDGALLERY,
397
         ANDROIDGALLERY6,
410
         ANDROIDGALLERY6,
411
+        ANDROIDGALLERYTB223FC,
398
         LENOVOSEETING
412
         LENOVOSEETING
399
     )
413
     )
400
 
414
 

Loading…
Cancel
Save