Skip to content

Commit

Permalink
fix: Fix the connectivity check toast again (#2216)
Browse files Browse the repository at this point in the history
  • Loading branch information
kitadai31 authored Sep 17, 2024
1 parent 0ce23d2 commit a7e2281
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ui/views/home/home_viewmodel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit a7e2281

Please sign in to comment.