Don't skip installing same-versionCode updates

This commit is contained in:
Imran Remtulla
2023-01-07 16:49:38 -05:00
parent 1fb68dd674
commit e888fb7120

View File

@@ -247,10 +247,7 @@ class AppsProvider with ChangeNotifier {
!(await canDowngradeApps())) {
throw DowngradeError();
}
if (appInfo == null ||
int.parse(newInfo.buildNumber) > appInfo.versionCode!) {
await InstallPlugin.installApk(file.file.path, 'dev.imranr.obtainium');
}
apps[file.appId]!.app.installedVersion =
apps[file.appId]!.app.latestVersion;
// Don't correct install status as installation may not be done yet