Fix issue where services version >9 was not configurable

This commit is contained in:
Rahul Kumar Patel
2021-03-20 03:21:23 +05:30
parent 4253875d62
commit 634474e6ca

View File

@@ -43,7 +43,7 @@ object PackageUtil {
return try { return try {
val packageInfo = getPackageInfo(context, packageName) val packageInfo = getPackageInfo(context, packageName)
if (packageInfo != null) { if (packageInfo != null) {
return versionCode == packageInfo.versionCode return packageInfo.versionCode >= versionCode
} }
true true
} catch (e: PackageManager.NameNotFoundException) { } catch (e: PackageManager.NameNotFoundException) {