mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-07 03:15:49 -06:00
fix: add vpn to list of states considered as connected to internet
This commit is contained in:
@@ -52,9 +52,15 @@ class ConnectivityStatusServiceImpl implements ConnectivityStatusService {
|
||||
}
|
||||
|
||||
bool _hasActiveInternetConnection(ConnectivityResult conn) {
|
||||
return conn == ConnectivityResult.mobile ||
|
||||
conn == ConnectivityResult.wifi ||
|
||||
conn == ConnectivityResult.ethernet;
|
||||
switch (conn) {
|
||||
case ConnectivityResult.wifi:
|
||||
case ConnectivityResult.ethernet:
|
||||
case ConnectivityResult.mobile:
|
||||
case ConnectivityResult.vpn:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@override
|
||||
|
||||
Reference in New Issue
Block a user