Workaround for version detection error in BG

This commit is contained in:
Imran Remtulla
2022-12-14 19:10:05 -05:00
parent 317b5ac83a
commit 481204665c
2 changed files with 7 additions and 3 deletions

View File

@@ -428,8 +428,12 @@ class AppsProvider with ChangeNotifier {
}
Future<bool> doesInstalledAppsPluginWork() async {
bool res =
(await InstalledApps.getAppInfo(obtainiumId)).versionName != null;
bool res = false;
try {
res = (await InstalledApps.getAppInfo(obtainiumId)).versionName != null;
} catch (e) {
//
}
if (!res) {
logs.add(tr('versionCorrectionDisabled'));
}