Skip to content

Commit

Permalink
Migration dialog was not usable on phone, due to missing scroll modifier
Browse files Browse the repository at this point in the history
  • Loading branch information
mtotschnig committed Aug 17, 2024
1 parent 3726828 commit 211da4d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 1 addition & 2 deletions fints/src/main/java/org/totschnig/fints/Banking.kt
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,7 @@ class Banking : ProtectedFragmentActivity() {
},
text = {
Column(
modifier = Modifier
.verticalScroll(rememberScrollState())
modifier = Modifier.verticalScroll(rememberScrollState())
) {
Error(errorMessage = errorState.value)
Help(buildList {
Expand Down
7 changes: 6 additions & 1 deletion fints/src/main/java/org/totschnig/fints/Composables.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ import androidx.compose.foundation.layout.ColumnScope
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.width
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.selection.selectable
import androidx.compose.foundation.selection.selectableGroup
import androidx.compose.foundation.text.KeyboardActions
import androidx.compose.foundation.text.KeyboardOptions
import androidx.compose.foundation.verticalScroll
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.AccountBalance
import androidx.compose.material3.AlertDialog
Expand Down Expand Up @@ -341,7 +343,10 @@ fun MigrationDialog(
}
},
text = {
Column(verticalArrangement = Arrangement.spacedBy(4.dp)) {
Column(
modifier = Modifier.verticalScroll(rememberScrollState()),
verticalArrangement = Arrangement.spacedBy(4.dp)
) {
Text(stringResource(R.string.migration_description_1548))

Error((migrationState as? MigrationState.Failure)?.message)
Expand Down

0 comments on commit 211da4d

Please sign in to comment.