From 6ac7ba204fa0b4556c30dc961d7493ac3b7387b9 Mon Sep 17 00:00:00 2001 From: Imran Remtulla Date: Mon, 5 Dec 2022 15:46:47 -0500 Subject: [PATCH] EVD bugfix --- lib/providers/source_provider.dart | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/providers/source_provider.dart b/lib/providers/source_provider.dart index 525064f..bd357ef 100644 --- a/lib/providers/source_provider.dart +++ b/lib/providers/source_provider.dart @@ -28,11 +28,13 @@ class AppNames { class APKDetails { late String version; late String versionFromSource; + late bool isStandardVersion; late List apkUrls; APKDetails(this.versionFromSource, this.apkUrls) { - version = - extractStandardVersionName(versionFromSource) ?? versionFromSource; + var temp = extractStandardVersionName(versionFromSource); + this.isStandardVersion = temp != null; + this.version = temp ?? versionFromSource; } } @@ -283,7 +285,7 @@ class SourceProvider { if (apk.apkUrls.isEmpty && !trackOnly) { throw NoAPKError(); } - bool enhancedVersionDetection = apk.version != apk.versionFromSource && + bool enhancedVersionDetection = apk.isStandardVersion && installedVersion != null && extractStandardVersionName(installedVersion, strict: true) != null; if (!enhancedVersionDetection) {