From 49ef28877dcca235e4bd29ffba11daa9ee0c82dd Mon Sep 17 00:00:00 2001 From: Joe Stein Date: Sat, 18 May 2019 12:05:53 +0200 Subject: [PATCH] Enable autodownload over Ethernet --- .../java/de/danoeh/antennapod/core/util/NetworkUtils.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/src/main/java/de/danoeh/antennapod/core/util/NetworkUtils.java b/core/src/main/java/de/danoeh/antennapod/core/util/NetworkUtils.java index 9bdd375ce..d9431bc5d 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/util/NetworkUtils.java +++ b/core/src/main/java/de/danoeh/antennapod/core/util/NetworkUtils.java @@ -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");