mirror of
https://github.com/gkd-kit/gkd.git
synced 2024-11-16 03:32:38 +08:00
perf: empty apps when reboot (#619)
This commit is contained in:
parent
b1ae97f211
commit
f1c34c11a9
|
@ -26,7 +26,8 @@ class GlobalRule(
|
|||
private val matchSystemApp = rule.matchSystemApp ?: group.matchSystemApp ?: false
|
||||
val apps = mutableMapOf<String, GlobalApp>().apply {
|
||||
(rule.apps ?: group.apps ?: emptyList()).filter { a ->
|
||||
appInfoCache.containsKey(a.id) // 过滤掉未安装应用
|
||||
// https://github.com/gkd-kit/gkd/issues/619
|
||||
appInfoCache.isEmpty() || appInfoCache.containsKey(a.id) // 过滤掉未安装应用
|
||||
}.forEach { a ->
|
||||
val enable = a.enable ?: appInfoCache[a.id]?.let { appInfo ->
|
||||
if (a.excludeVersionCodes?.contains(appInfo.versionCode) == true) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user