Skip to content

Commit

Permalink
feat: priority rule
Browse files Browse the repository at this point in the history
  • Loading branch information
lisonge committed Oct 16, 2024
1 parent 4fc031a commit 1825b00
Show file tree
Hide file tree
Showing 23 changed files with 904 additions and 976 deletions.
8 changes: 4 additions & 4 deletions app/src/main/kotlin/li/songe/gkd/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -208,11 +208,11 @@ private fun Activity.fixTopPadding() {

@Composable
private fun ShizukuErrorDialog(stateFlow: MutableStateFlow<Boolean>) {
val state = stateFlow.collectAsState()
if (state.value) {
val state = stateFlow.collectAsState().value
if (state) {
val appId = "moe.shizuku.privileged.api"
val appInfoCache = appInfoCacheFlow.collectAsState()
val installed = appInfoCache.value.contains(appId)
val appInfoCache = appInfoCacheFlow.collectAsState().value
val installed = appInfoCache.contains(appId)
AlertDialog(
onDismissRequest = { stateFlow.value = false },
title = { Text(text = "授权错误") },
Expand Down
2 changes: 0 additions & 2 deletions app/src/main/kotlin/li/songe/gkd/data/AppRule.kt
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package li.songe.gkd.data

import li.songe.gkd.util.ResolvedAppGroup

class AppRule(
rule: RawSubscription.RawAppRule,
g: ResolvedAppGroup,
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/kotlin/li/songe/gkd/data/ComplexSnapshot.kt
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ fun createComplexSnapshot(): ComplexSnapshot {
screenWidth = ScreenUtils.getScreenWidth(),
isLandscape = ScreenUtils.isLandscape(),

nodes = NodeInfo.info2nodeList(currentAbNode)
nodes = info2nodeList(currentAbNode)
)
}

Expand Down
1 change: 0 additions & 1 deletion app/src/main/kotlin/li/songe/gkd/data/GlobalRule.kt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package li.songe.gkd.data

import li.songe.gkd.service.launcherAppId
import li.songe.gkd.util.ResolvedGlobalGroup
import li.songe.gkd.util.systemAppsFlow

data class GlobalApp(
Expand Down
Loading

0 comments on commit 1825b00

Please sign in to comment.