Make downgrade detection message more clear (#2342)

This commit is contained in:
Imran Remtulla
2025-07-02 20:33:11 -04:00
parent b9fffed625
commit 0f803b963f
2 changed files with 5 additions and 2 deletions

View File

@@ -916,7 +916,7 @@ class AppsProvider with ChangeNotifier {
if (appInfo != null &&
newInfo.versionCode! < appInfo.versionCode! &&
!(await canDowngradeApps())) {
throw DowngradeError();
throw DowngradeError(appInfo.versionCode!, newInfo.versionCode!);
}
if (needsBGWorkaround) {
// The below 'await' will never return if we are in a background process