From 9e4d8fa40493dc8217849a726384405d0f1f7c56 Mon Sep 17 00:00:00 2001 From: hasibprince Date: Tue, 30 May 2023 19:48:17 +0600 Subject: [PATCH] fixed: updating rating during recycle --- .../e/apps/applicationlist/ApplicationListRVAdapter.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/foundation/e/apps/applicationlist/ApplicationListRVAdapter.kt b/app/src/main/java/foundation/e/apps/applicationlist/ApplicationListRVAdapter.kt index 216b0335c..ff13ee4d8 100644 --- a/app/src/main/java/foundation/e/apps/applicationlist/ApplicationListRVAdapter.kt +++ b/app/src/main/java/foundation/e/apps/applicationlist/ApplicationListRVAdapter.kt @@ -187,6 +187,8 @@ class ApplicationListRVAdapter( private fun ApplicationListItemBinding.updateRating(searchApp: FusedApp) { if (searchApp.ratings.usageQualityScore != -1.0) { appRating.text = searchApp.ratings.usageQualityScore.toString() + } else { + appRating.text = root.context.getString(R.string.not_available) } } -- GitLab