mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2024-11-12 18:04:28 +01:00
fix: Lack of connectivity toast not showing due to incorrect comparison
Signed-off-by: validcube <pun.butrach@gmail.com>
This commit is contained in:
parent
b769a66d16
commit
81f05e1b19
1 changed files with 3 additions and 2 deletions
|
@ -85,7 +85,7 @@ class HomeViewModel extends BaseViewModel {
|
||||||
AndroidFlutterLocalNotificationsPlugin>()
|
AndroidFlutterLocalNotificationsPlugin>()
|
||||||
?.requestNotificationsPermission();
|
?.requestNotificationsPermission();
|
||||||
final bool isConnected =
|
final bool isConnected =
|
||||||
await Connectivity().checkConnectivity() != ConnectivityResult.none;
|
await Connectivity().checkConnectivity() != [ConnectivityResult.none];
|
||||||
if (!isConnected) {
|
if (!isConnected) {
|
||||||
_toast.showBottom(t.homeView.noConnection);
|
_toast.showBottom(t.homeView.noConnection);
|
||||||
}
|
}
|
||||||
|
@ -106,7 +106,8 @@ class HomeViewModel extends BaseViewModel {
|
||||||
void navigateToAppInfo(PatchedApplication app, bool isLastPatchedApp) {
|
void navigateToAppInfo(PatchedApplication app, bool isLastPatchedApp) {
|
||||||
_navigationService.navigateTo(
|
_navigationService.navigateTo(
|
||||||
Routes.appInfoView,
|
Routes.appInfoView,
|
||||||
arguments: AppInfoViewArguments(app: app, isLastPatchedApp: isLastPatchedApp),
|
arguments:
|
||||||
|
AppInfoViewArguments(app: app, isLastPatchedApp: isLastPatchedApp),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue