Compare commits

..

2 Commits

Author SHA1 Message Date
d53f8cf130 chore(release): 1.22.1-dev.1 [skip ci]
## [1.22.1-dev.1](https://github.com/ReVanced/revanced-manager/compare/v1.22.0...v1.22.1-dev.1) (2024-09-17)

### Bug Fixes

* Fix the connectivity check toast again ([#2216](https://github.com/ReVanced/revanced-manager/issues/2216)) ([a7e2281](a7e2281805))
2024-09-17 12:56:13 +00:00
a7e2281805 fix: Fix the connectivity check toast again (#2216) 2024-09-17 19:48:05 +07:00
2 changed files with 3 additions and 3 deletions

View File

@ -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);
}

View File

@ -4,7 +4,7 @@ homepage: https://github.com/ReVanced/revanced-manager
publish_to: 'none'
version: 1.22.0+101800038
version: 1.22.1-dev.1+101800039
environment:
sdk: '>=3.0.0 <4.0.0'