Maybe fixed updates this time
This commit is contained in:
parent
09fda2b004
commit
0401145987
|
@ -26,6 +26,7 @@ class _ScreenSettingsAboutState extends State<ScreenSettingsAbout> {
|
||||||
super.initState();
|
super.initState();
|
||||||
WidgetsFlutterBinding.ensureInitialized();
|
WidgetsFlutterBinding.ensureInitialized();
|
||||||
updatesSupported(setState, true);
|
updatesSupported(setState, true);
|
||||||
|
setState(() {});
|
||||||
if (prefs!.getBool("checkUpdateOnSettingsOpen") ?? false) {
|
if (prefs!.getBool("checkUpdateOnSettingsOpen") ?? false) {
|
||||||
checkUpdate(setState);
|
checkUpdate(setState);
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,10 +43,10 @@ Future<bool> updatesSupported(Function setState,
|
||||||
(installerApps
|
(installerApps
|
||||||
.contains((await InstallReferrer.app).packageName ?? ""))) {
|
.contains((await InstallReferrer.app).packageName ?? ""))) {
|
||||||
returnValue = false;
|
returnValue = false;
|
||||||
if (await InstallReferrer.referrer ==
|
// if (await InstallReferrer.referrer ==
|
||||||
InstallationAppReferrer.androidDebug) {
|
// InstallationAppReferrer.androidDebug) {
|
||||||
returnValue = true;
|
// returnValue = true;
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
if (!repoUrl.startsWith("https://github.com")) {
|
if (!repoUrl.startsWith("https://github.com")) {
|
||||||
returnValue = false;
|
returnValue = false;
|
||||||
|
@ -114,7 +114,7 @@ void checkUpdate(Function setState) async {
|
||||||
});
|
});
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
setState(() {
|
setState(() {
|
||||||
updateStatus = "error";
|
updateStatus = "notAvailable";
|
||||||
updateLoading = false;
|
updateLoading = false;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue