File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
app/src/main/kotlin/li/songe/gkd/shizuku Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -20,15 +20,17 @@ class FixedTaskStackListener : ITaskStackListener.Stub() {
2020
2121 override fun onTaskStackChanged () {
2222 val cpn = shizukuContextFlow.value.topCpn() ? : return
23- val t = System .currentTimeMillis()
24- val skip = defaultFront == = lastFront.updateAndGet {
25- if (it.first > 0 && t - it.first < 200 && it.second == cpn) {
26- defaultFront
27- } else {
28- it
23+ if (lastFront.value.first > 0 ) {
24+ val t = System .currentTimeMillis()
25+ val skip = defaultFront == = lastFront.updateAndGet {
26+ if (it.first > 0 && t - it.first < 200 && it.second == cpn) {
27+ defaultFront
28+ } else {
29+ it
30+ }
2931 }
32+ if (skip) return
3033 }
31- if (skip) return
3234 updateTopActivity(
3335 appId = cpn.packageName,
3436 activityId = cpn.className,
You can’t perform that action at this time.
0 commit comments