diff --git a/app/src/main/java/foundation/e/apps/data/enums/Source.kt b/app/src/main/java/foundation/e/apps/data/enums/Source.kt index bb10fcdbe132e18f17c140a64739a08299719cc2..becfc2b343ceda1be344a7dd7808c4a5ad0e8894 100644 --- a/app/src/main/java/foundation/e/apps/data/enums/Source.kt +++ b/app/src/main/java/foundation/e/apps/data/enums/Source.kt @@ -24,9 +24,12 @@ enum class Source { PWA; override fun toString(): String { - return name.lowercase() - .split("_") - .joinToString(" ") { it.replaceFirstChar(Char::uppercase) } + return when (this) { + PLAY_STORE -> "" + else -> name.lowercase() + .split("_") + .joinToString(" ") { it.replaceFirstChar(Char::uppercase) } + } } companion object { diff --git a/app/src/main/java/foundation/e/apps/ui/applicationlist/ApplicationListRVAdapter.kt b/app/src/main/java/foundation/e/apps/ui/applicationlist/ApplicationListRVAdapter.kt index d8855538c6f7f85318650a69bb25f77989b7867d..656591845129994cc40c07c33874d2f43842ef99 100644 --- a/app/src/main/java/foundation/e/apps/ui/applicationlist/ApplicationListRVAdapter.kt +++ b/app/src/main/java/foundation/e/apps/ui/applicationlist/ApplicationListRVAdapter.kt @@ -239,7 +239,12 @@ class ApplicationListRVAdapter( } private fun ApplicationListItemBinding.updateSourceTag(searchApp: Application) { - sourceTag.text = searchApp.source.toString() + sourceTag.visibility = View.INVISIBLE + val tag = searchApp.source.toString() + if (tag.isNotBlank()) { + sourceTag.text = tag + sourceTag.visibility = View.VISIBLE + } } private fun handleAppItemClick(