Try to show actual path in invalid location downloader notification

Instead of the class/hashCode, which doesn't mean much to a user.
This commit is contained in:
arkon
2023-12-31 23:33:10 -05:00
parent 6f34c5e894
commit 83130f9bf9
4 changed files with 14 additions and 3 deletions

View File

@@ -42,6 +42,7 @@ import kotlinx.collections.immutable.persistentListOf
import kotlinx.collections.immutable.persistentMapOf
import logcat.LogPriority
import tachiyomi.core.i18n.stringResource
import tachiyomi.core.storage.displayablePath
import tachiyomi.core.util.lang.launchNonCancellable
import tachiyomi.core.util.lang.withUIContext
import tachiyomi.core.util.system.logcat
@@ -111,7 +112,7 @@ object SettingsDataScreen : SearchableSettings {
return remember(storageDir) {
val file = UniFile.fromUri(context, storageDir.toUri())
file?.filePath ?: file?.uri?.toString()
file?.displayablePath
} ?: stringResource(MR.strings.invalid_location, storageDir)
}