diff --git a/core/src/main/java/de/danoeh/antennapod/core/cast/CastManager.java b/core/src/main/java/de/danoeh/antennapod/core/cast/CastManager.java index 547e89b3c..629798f41 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/cast/CastManager.java +++ b/core/src/main/java/de/danoeh/antennapod/core/cast/CastManager.java @@ -128,6 +128,7 @@ public class CastManager extends BaseCastManager implements OnFailedListener { CastConfiguration castConfiguration = new CastConfiguration.Builder(CAST_APP_ID) .enableDebug() .enableAutoReconnect() + .enableWifiReconnection() .setLaunchOptions(true, Locale.getDefault()) .build(); Log.d(TAG, "New instance of CastManager is created"); @@ -1736,4 +1737,19 @@ public class CastManager extends BaseCastManager implements OnFailedListener { } return mediaRouteActionProvider; } + + /* (non-Javadoc) + * These methods startReconnectionService and stopReconnectionService simply override the ones + * from BaseCastManager with empty implementations because we handle the service ourselves, but + * need to allow BaseCastManager to save current network information. + */ + @Override + protected void startReconnectionService(long mediaDurationLeft) { + // Do nothing + } + + @Override + protected void stopReconnectionService() { + // Do nothing + } }