mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2024-11-09 16:52:14 +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>()
|
||||
?.requestNotificationsPermission();
|
||||
final bool isConnected =
|
||||
await Connectivity().checkConnectivity() != ConnectivityResult.none;
|
||||
await Connectivity().checkConnectivity() != [ConnectivityResult.none];
|
||||
if (!isConnected) {
|
||||
_toast.showBottom(t.homeView.noConnection);
|
||||
}
|
||||
|
@ -106,7 +106,8 @@ class HomeViewModel extends BaseViewModel {
|
|||
void navigateToAppInfo(PatchedApplication app, bool isLastPatchedApp) {
|
||||
_navigationService.navigateTo(
|
||||
Routes.appInfoView,
|
||||
arguments: AppInfoViewArguments(app: app, isLastPatchedApp: isLastPatchedApp),
|
||||
arguments:
|
||||
AppInfoViewArguments(app: app, isLastPatchedApp: isLastPatchedApp),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue