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

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

@@ -301,6 +301,11 @@ object Const {
301 301
      */
302 302
     const val ANDROIDCAMERA6 = "com.dtab.camera"
303 303
 
304
+    /**
305
+     * 联想相机TB223FC
306
+     */
307
+    const val ANDROIDCAMERATB223FC = "com.lenovotab.camera"
308
+
304 309
     /**
305 310
      * 联想相册505f
306 311
      */
@@ -310,6 +315,11 @@ object Const {
310 315
      */
311 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,8 +389,10 @@ object Const {
379 389
         ANDROIDDESKCLOCK,
380 390
         ANDROIDCAMERA,
381 391
         ANDROIDCAMERA6,
392
+        ANDROIDCAMERATB223FC,
382 393
         ANDROIDGALLERY,
383
-        ANDROIDGALLERY6
394
+        ANDROIDGALLERY6,
395
+        ANDROIDGALLERYTB223FC
384 396
     )
385 397
 
386 398
     /**
@@ -393,8 +405,10 @@ object Const {
393 405
         ANDROIDDESKCLOCK,
394 406
         ANDROIDCAMERA,
395 407
         ANDROIDCAMERA6,
408
+        ANDROIDCAMERATB223FC,
396 409
         ANDROIDGALLERY,
397 410
         ANDROIDGALLERY6,
411
+        ANDROIDGALLERYTB223FC,
398 412
         LENOVOSEETING
399 413
     )
400 414
 

Loading…
Cancel
Save