decode Uri and capitalize OK

This commit is contained in:
2023-06-28 16:17:50 +03:00
parent 4d6fb0419e
commit bd50c73354
@@ -99,10 +99,6 @@ fun SettingsScreen(navigationGoBack: () -> Unit = {}, onThemeChange: (v: Int) ->
} }
} }
@Composable @Composable
fun Appearance(onThemeChange: (v: Int) -> Unit) { fun Appearance(onThemeChange: (v: Int) -> Unit) {
val prefs = Preferences(LocalContext.current) val prefs = Preferences(LocalContext.current)
@@ -162,7 +158,7 @@ fun Updates() {
} }
hmacOpenDialog = false hmacOpenDialog = false
}) { }) {
Text(text = "Ok") Text(text = "OK")
} }
} }
) { ) {
@@ -238,7 +234,7 @@ fun Downloads() {
) )
DialogSetting( DialogSetting(
title = "Download Directory", title = "Download Directory",
value = downloadDir, value = Uri.decode(downloadDir),
icon = Icons.Outlined.FileDownload, icon = Icons.Outlined.FileDownload,
onClick = { onClick = {
downloadDirPicker.launch(Uri.EMPTY) downloadDirPicker.launch(Uri.EMPTY)
@@ -246,7 +242,7 @@ fun Downloads() {
) )
DialogSetting( DialogSetting(
title = "Unpack Directory", title = "Unpack Directory",
value = unpackDir, value = Uri.decode(unpackDir),
icon = Icons.Outlined.Unarchive, icon = Icons.Outlined.Unarchive,
onClick = { onClick = {
unpackDirPicker.launch(Uri.EMPTY) unpackDirPicker.launch(Uri.EMPTY)
@@ -302,7 +298,7 @@ fun Pkg2Zip() {
} }
pkg2zipOpenDialog = false pkg2zipOpenDialog = false
}) { }) {
Text(text = "Ok") Text(text = "OK")
} }
} }
) { ) {