mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2024-11-10 01:01:56 +01:00
fix: Fix the connectivity check toast again (#2216)
This commit is contained in:
parent
0ce23d2d60
commit
a7e2281805
1 changed files with 2 additions and 2 deletions
|
@ -84,8 +84,8 @@ class HomeViewModel extends BaseViewModel {
|
|||
.resolvePlatformSpecificImplementation<
|
||||
AndroidFlutterLocalNotificationsPlugin>()
|
||||
?.requestNotificationsPermission();
|
||||
final bool isConnected =
|
||||
await Connectivity().checkConnectivity() != [ConnectivityResult.none];
|
||||
final bool isConnected = !(await Connectivity().checkConnectivity())
|
||||
.contains(ConnectivityResult.none);
|
||||
if (!isConnected) {
|
||||
_toast.showBottom(t.homeView.noConnection);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue