[Android][Disable work manager] check internet connection directly

(cherry picked from commit de517af8cce44d34f01fc889c9b03c01ee489351)
This commit is contained in:
Dat PHAM HOANG
2024-01-11 00:48:09 +07:00
committed by Dat H. Pham
parent a4e9f21a4b
commit cb50c183cf
3 changed files with 70 additions and 39 deletions
@@ -96,4 +96,8 @@ class NetworkConnectionController extends GetxController {
return _connectivityResult.value != ConnectivityResult.none &&
_internetConnectionStatus.value == InternetConnectionStatus.connected;
}
Future<bool> hasInternetConnection() {
return _internetConnectionChecker.hasConnection;
}
}