Skip to content

Commit

Permalink
perf: AuthA11yPage verticalScroll
Browse files Browse the repository at this point in the history
  • Loading branch information
lisonge committed Dec 22, 2024
1 parent 277a3ab commit 157240f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion app/src/main/kotlin/li/songe/gkd/ui/AuthA11yPage.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.text.selection.SelectionContainer
import androidx.compose.foundation.verticalScroll
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.automirrored.filled.ArrowBack
import androidx.compose.material3.AlertDialog
Expand Down Expand Up @@ -46,6 +48,7 @@ import li.songe.gkd.service.A11yService
import li.songe.gkd.service.fixRestartService
import li.songe.gkd.shizuku.execCommandForResult
import li.songe.gkd.ui.component.updateDialogOptions
import li.songe.gkd.ui.style.EmptyHeight
import li.songe.gkd.ui.style.itemHorizontalPadding
import li.songe.gkd.util.LocalNavController
import li.songe.gkd.util.ProfileTransitions
Expand Down Expand Up @@ -85,7 +88,10 @@ fun AuthA11yPage() {
}, actions = {})
}) { contentPadding ->
Column(
modifier = Modifier.padding(contentPadding)
modifier = Modifier
.fillMaxWidth()
.verticalScroll(rememberScrollState())
.padding(contentPadding)
) {
Text(
text = "选择一个授权模式进行操作",
Expand Down Expand Up @@ -229,6 +235,7 @@ fun AuthA11yPage() {
Spacer(modifier = Modifier.height(12.dp))
}
}
Spacer(modifier = Modifier.height(EmptyHeight))
}
}

Expand Down

0 comments on commit 157240f

Please sign in to comment.