mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
changes
This commit is contained in:
parent
7894bd17ff
commit
19cec3bf99
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue