mirror of
https://github.com/revanced/revanced-manager.git
synced 2025-05-20 13:37:06 +02:00
fix: Fix the connectivity check toast again (#2216)
This commit is contained in:
parent
0ce23d2d60
commit
a7e2281805
@ -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…
x
Reference in New Issue
Block a user