This commit is contained in:
hexated 2022-09-08 23:41:53 +07:00
parent 7894bd17ff
commit 19cec3bf99
2 changed files with 2 additions and 2 deletions

View file

@ -135,7 +135,7 @@ class PluginAdapter(
) {
val metadata = data.plugin.second
val disabled = metadata.status == PROVIDER_STATUS_DOWN
val name = if (metadata.name.contains("Provider")) metadata.name.replace("Provider", "") else metadata.name
val name = metadata.name.removeSuffix("Provider")
val alpha = if (disabled) 0.6f else 1f
val isLocal = !data.plugin.second.url.startsWith("http")
itemView.main_text?.alpha = alpha

View file

@ -64,7 +64,7 @@ class PluginDetailsFragment(val data: PluginViewData) : BottomSheetDialogFragmen
) {
plugin_icon?.setImageResource(R.drawable.ic_baseline_extension_24)
}
plugin_name?.text = if (metadata.name.contains("Provider")) metadata.name.replace("Provider", "") else metadata.name
plugin_name?.text = metadata.name.removeSuffix("Provider")
plugin_version?.text = metadata.version.toString()
plugin_description?.text = metadata.description ?: getString(R.string.no_data)
plugin_size?.text = if (metadata.fileSize == null) getString(R.string.no_data) else formatFileSize(context, metadata.fileSize)