mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-08-01 21:30:16 +02:00
Don't skip installing same-versionCode updates
This commit is contained in:
@@ -247,10 +247,7 @@ class AppsProvider with ChangeNotifier {
|
|||||||
!(await canDowngradeApps())) {
|
!(await canDowngradeApps())) {
|
||||||
throw DowngradeError();
|
throw DowngradeError();
|
||||||
}
|
}
|
||||||
if (appInfo == null ||
|
await InstallPlugin.installApk(file.file.path, 'dev.imranr.obtainium');
|
||||||
int.parse(newInfo.buildNumber) > appInfo.versionCode!) {
|
|
||||||
await InstallPlugin.installApk(file.file.path, 'dev.imranr.obtainium');
|
|
||||||
}
|
|
||||||
apps[file.appId]!.app.installedVersion =
|
apps[file.appId]!.app.installedVersion =
|
||||||
apps[file.appId]!.app.latestVersion;
|
apps[file.appId]!.app.latestVersion;
|
||||||
// Don't correct install status as installation may not be done yet
|
// Don't correct install status as installation may not be done yet
|
||||||
|
Reference in New Issue
Block a user