mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-08 12:07:54 -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
|
||||
|
||||
@@ -284,7 +284,6 @@ class _AuthenticationWrapperState extends State<AuthenticationWrapper> {
|
||||
ReceiveSharingIntent.getMediaStream()
|
||||
.listen(ShareIntentQueue.instance.addAll);
|
||||
// For sharing files coming from outside the app while the app is closed
|
||||
// TODO: This does not work currently, app does not have permission to access the shared file
|
||||
ReceiveSharingIntent.getInitialMedia()
|
||||
.then(ShareIntentQueue.instance.addAll);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user