Fix updatable extensions having installed/updated subtext

This commit is contained in:
Jays2Kings 2021-08-22 21:47:50 -04:00
parent 8a4030a546
commit 1b08e07037

View File

@ -46,7 +46,7 @@ class ExtensionHolder(view: View, val adapter: ExtensionAdapter) :
binding.extTitle.text = extension.name binding.extTitle.text = extension.name
val infoText = mutableListOf(extension.versionName) val infoText = mutableListOf(extension.versionName)
if (extension is Extension.Installed) { if (extension is Extension.Installed && !extension.hasUpdate) {
when (InstalledExtensionsOrder.fromValue(adapter.installedSortOrder)) { when (InstalledExtensionsOrder.fromValue(adapter.installedSortOrder)) {
InstalledExtensionsOrder.RecentlyUpdated -> { InstalledExtensionsOrder.RecentlyUpdated -> {
binding.date.isVisible = true binding.date.isVisible = true