Merge pull request #3190 from jas14/enable-ethernet-autodl

Enable autodownload over Ethernet
This commit is contained in:
Martin Fietz 2019-05-19 11:29:20 +02:00 committed by GitHub
commit e06dc4fd89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -68,6 +68,11 @@ public class NetworkUtils {
}
}
}
} else if (networkInfo.getType() == ConnectivityManager.TYPE_ETHERNET) {
Log.d(TAG, "Device is connected to Ethernet");
if (networkInfo.isConnected()) {
return true;
}
} else {
if (!UserPreferences.isEnableAutodownloadOnMobile()) {
Log.d(TAG, "Auto Download not enabled on Mobile");