From bd50c73354f4a214c628c48ab4952c469426a1d0 Mon Sep 17 00:00:00 2001 From: IllusionMan1212 Date: Wed, 28 Jun 2023 16:17:50 +0300 Subject: [PATCH] decode Uri and capitalize OK --- .../com/illusionware/npsbrowser/ui/pages/Settings.kt | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/app/src/main/java/com/illusionware/npsbrowser/ui/pages/Settings.kt b/app/src/main/java/com/illusionware/npsbrowser/ui/pages/Settings.kt index 4c6d7b4..bd76ca3 100644 --- a/app/src/main/java/com/illusionware/npsbrowser/ui/pages/Settings.kt +++ b/app/src/main/java/com/illusionware/npsbrowser/ui/pages/Settings.kt @@ -99,10 +99,6 @@ fun SettingsScreen(navigationGoBack: () -> Unit = {}, onThemeChange: (v: Int) -> } } - - - - @Composable fun Appearance(onThemeChange: (v: Int) -> Unit) { val prefs = Preferences(LocalContext.current) @@ -162,7 +158,7 @@ fun Updates() { } hmacOpenDialog = false }) { - Text(text = "Ok") + Text(text = "OK") } } ) { @@ -238,7 +234,7 @@ fun Downloads() { ) DialogSetting( title = "Download Directory", - value = downloadDir, + value = Uri.decode(downloadDir), icon = Icons.Outlined.FileDownload, onClick = { downloadDirPicker.launch(Uri.EMPTY) @@ -246,7 +242,7 @@ fun Downloads() { ) DialogSetting( title = "Unpack Directory", - value = unpackDir, + value = Uri.decode(unpackDir), icon = Icons.Outlined.Unarchive, onClick = { unpackDirPicker.launch(Uri.EMPTY) @@ -302,7 +298,7 @@ fun Pkg2Zip() { } pkg2zipOpenDialog = false }) { - Text(text = "Ok") + Text(text = "OK") } } ) {