From b54cc6d9977a1b963fb920290191b4a74a0208f4 Mon Sep 17 00:00:00 2001 From: Sayantan Roychowdhury Date: Tue, 30 Jul 2024 17:45:44 +0530 Subject: [PATCH 1/2] check systemApp before using versionName to check update --- .../e/apps/data/application/ApplicationDataManager.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/foundation/e/apps/data/application/ApplicationDataManager.kt b/app/src/main/java/foundation/e/apps/data/application/ApplicationDataManager.kt index 2630550ac..5c99d5860 100644 --- a/app/src/main/java/foundation/e/apps/data/application/ApplicationDataManager.kt +++ b/app/src/main/java/foundation/e/apps/data/application/ApplicationDataManager.kt @@ -117,7 +117,7 @@ class ApplicationDataManager @Inject constructor( appLoungePackageManager.getPackageStatus( application.package_name, application.latest_version_code, - application.latest_version_number, + if (application.isSystemApp) application.latest_version_number else "", ) } } -- GitLab From 075ed34964a428218f91f61c9d77fa81d126042f Mon Sep 17 00:00:00 2001 From: Sayantan Roychowdhury Date: Tue, 30 Jul 2024 18:48:13 +0530 Subject: [PATCH 2/2] suggestion --- .../e/apps/data/application/ApplicationDataManager.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/foundation/e/apps/data/application/ApplicationDataManager.kt b/app/src/main/java/foundation/e/apps/data/application/ApplicationDataManager.kt index 5c99d5860..7fafbccd5 100644 --- a/app/src/main/java/foundation/e/apps/data/application/ApplicationDataManager.kt +++ b/app/src/main/java/foundation/e/apps/data/application/ApplicationDataManager.kt @@ -114,10 +114,13 @@ class ApplicationDataManager @Inject constructor( return if (application.is_pwa) { pwaManager.getPwaStatus(application) } else { + val versionName = if (application.isSystemApp) { + application.latest_version_number + } else "" appLoungePackageManager.getPackageStatus( application.package_name, application.latest_version_code, - if (application.isSystemApp) application.latest_version_number else "", + versionName, ) } } -- GitLab