[Android][Disable work manager] Change the logic of network status base on internet connection
(update every 5 secs) (cherry picked from commit d665abc45d752165e3c13ef29619fd28b30d8eeb)
This commit is contained in:
committed by
Dat H. Pham
parent
b358188362
commit
46d29f21b9
@@ -93,8 +93,7 @@ class NetworkConnectionController extends GetxController {
|
||||
}
|
||||
|
||||
bool isNetworkConnectionAvailable() {
|
||||
return _connectivityResult.value != ConnectivityResult.none &&
|
||||
_internetConnectionStatus.value == InternetConnectionStatus.connected;
|
||||
return _internetConnectionStatus.value == InternetConnectionStatus.connected;
|
||||
}
|
||||
|
||||
Future<bool> hasInternetConnection() {
|
||||
|
||||
Reference in New Issue
Block a user