mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-04-23 19:32:16 +00:00
Fix: Crashing on empty products without source code link
This commit is contained in:
parent
1253121938
commit
044b1f659e
@ -426,7 +426,8 @@ class AppSheetX() : FullscreenBottomSheetDialogFragment(), Callbacks {
|
|||||||
versionCode = product.versionCode.toString(),
|
versionCode = product.versionCode.toString(),
|
||||||
appSize = product.displayRelease?.size?.formatSize().orEmpty(),
|
appSize = product.displayRelease?.size?.formatSize().orEmpty(),
|
||||||
repoHost = "@${
|
repoHost = "@${
|
||||||
URI(product.source).host.removePrefix("www.")
|
(URI(product.source)?.host ?: stringResource(id = R.string.unknown))
|
||||||
|
.removePrefix("www.")
|
||||||
.replaceFirstChar { if (it.isLowerCase()) it.titlecase(Locale.getDefault()) else it.toString() }
|
.replaceFirstChar { if (it.isLowerCase()) it.titlecase(Locale.getDefault()) else it.toString() }
|
||||||
}",
|
}",
|
||||||
mainAction = mainAction,
|
mainAction = mainAction,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user