[Android][Disable work manager] check internet connection directly
(cherry picked from commit de517af8cce44d34f01fc889c9b03c01ee489351)
This commit is contained in:
committed by
Dat H. Pham
parent
a4e9f21a4b
commit
cb50c183cf
@@ -96,4 +96,8 @@ class NetworkConnectionController extends GetxController {
|
||||
return _connectivityResult.value != ConnectivityResult.none &&
|
||||
_internetConnectionStatus.value == InternetConnectionStatus.connected;
|
||||
}
|
||||
|
||||
Future<bool> hasInternetConnection() {
|
||||
return _internetConnectionChecker.hasConnection;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user