mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-21 20:47:03 -05:00
Try to fall back to showing URI for storage location if concrete file path isn't available
Closes #9977
This commit is contained in:
parent
5b2a099203
commit
0c860c0fe9
1 changed files with 2 additions and 1 deletions
|
@ -105,7 +105,8 @@ object SettingsDataScreen : SearchableSettings {
|
|||
return Preference.PreferenceItem.TextPreference(
|
||||
title = stringResource(MR.strings.pref_storage_location),
|
||||
subtitle = remember(storageDir) {
|
||||
(UniFile.fromUri(context, storageDir.toUri())?.filePath)
|
||||
val file = UniFile.fromUri(context, storageDir.toUri())
|
||||
file?.filePath ?: file?.uri?.toString()
|
||||
} ?: stringResource(MR.strings.invalid_location, storageDir),
|
||||
onClick = {
|
||||
try {
|
||||
|
|
Loading…
Reference in a new issue