Browse Source

1.将UPDATESTRATEGYNUM设置为9,即大于9次执行策略。

20241218TB223FC(测试jar包)
wangwanlei 7 months ago
parent
commit
d55012e957

+ 1
- 1
app/src/main/java/com/xhly/manageapp/ui/main/activity/MainActivity.kt View File

866
             lastTimeLong=System.currentTimeMillis()
866
             lastTimeLong=System.currentTimeMillis()
867
             updateAllStrategy()
867
             updateAllStrategy()
868
         }else if (Const.backNum > Const.UPDATESTRATEGYNUM){
868
         }else if (Const.backNum > Const.UPDATESTRATEGYNUM){
869
-            //进入该页面20次或者点击返回键20次需要更新策略
869
+            //进入该页面Const.UPDATESTRATEGYNUM次或者点击返回键Const.UPDATESTRATEGYNUM次需要更新策略
870
             lastTimeLong=System.currentTimeMillis()
870
             lastTimeLong=System.currentTimeMillis()
871
             Const.backNum = 0
871
             Const.backNum = 0
872
             updateAllStrategy()
872
             updateAllStrategy()

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

43
     var backNum = 0
43
     var backNum = 0
44
 
44
 
45
     //记录点击返回的次数,超过10次请求策略
45
     //记录点击返回的次数,超过10次请求策略
46
-    const val UPDATESTRATEGYNUM = 10
46
+    const val UPDATESTRATEGYNUM = 9
47
 
47
 
48
     /**
48
     /**
49
      * 标记熄屏
49
      * 标记熄屏

Loading…
Cancel
Save