建议matchTime搭配activityIds作用 #376
Replies: 4 comments 1 reply
-
|
没看懂你想表达什么?你说的这些不都是正常的预期行为吗? |
Beta Was this translation helpful? Give feedback.
-
|
gkd/app/src/main/kotlin/li/songe/gkd/service/AbState.kt Lines 128 to 139 in 7ad5917 此处是否应改为如下,否则 resetMatch: 'app', ,进入指定activity中时,可能已经(t - appChangeTime > rule.matchAllTime)
|
Beta Was this translation helpful? Give feedback.
-
|
不再调整matchTime逻辑,改为调整使用方法 |
Beta Was this translation helpful? Give feedback.
-
这种指定了activitylds的情况是不是可以使用 还有一个问题: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
当前规则中同时设置了,
matchTime、resetMatch:'app',、activityIds,matchTime貌似会从进入app就开始匹配倒计时,而不是进入指定activityIds。导致超时后再进入指定activityId时,规则已失效。比如设置的
支付界面一次性规则,时间在进入app首页就已经花掉了。建议如规则中指定了
activityIds,则从进入此规则时,matchTime开始生效。演示用例:
先进入笔记设置界面
activityIds:'com.miui.notes.ui.NotesPreferenceActivity',等待过了matchTime时间后,进入笔记列表界面activityIds: 'com.miui.notes.ui.NotesListActivity',,此时规则已休眠,导致未触发点击。日志
Beta Was this translation helpful? Give feedback.
All reactions