Skip to content

Commit a32199b

Browse files
committed
chore: rm AppInfo.visible
1 parent 8e86159 commit a32199b

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

app/src/main/kotlin/li/songe/gkd/data/AppInfo.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ data class AppInfo(
3636
result = 31 * result + userId
3737
return result
3838
}
39-
40-
val visible get() = !(hidden && isSystem)
4139
}
4240

4341
val selfAppInfo by lazy {

app/src/main/kotlin/li/songe/gkd/util/AppInfoState.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ val systemAppsFlow by lazy { systemAppInfoCacheFlow.mapState(appScope) { c -> c.
5555

5656
val visibleAppInfosFlow by lazy {
5757
appInfoMapFlow.mapState(appScope) { c ->
58-
c.values.filter { it.visible }.sortedWith { a, b ->
58+
c.values.filterNot { it.hidden }.sortedWith { a, b ->
5959
collator.compare(a.name, b.name)
6060
}
6161
}

0 commit comments

Comments
 (0)