diff options
author | Domingos Lopes <domingos86lopes+github@gmail.com> | 2016-04-17 02:09:10 -0400 |
---|---|---|
committer | Domingos Lopes <domingos86lopes+github@gmail.com> | 2016-04-24 22:06:26 -0400 |
commit | 982142634f5b644d55808f1c9f6f536a7d9fd6fe (patch) | |
tree | 8c00a4173f2ca16f9bcc3febb18dc3d84782906a | |
parent | dedd454685f29985f36330b59eb7d17e7748458d (diff) | |
download | AntennaPod-982142634f5b644d55808f1c9f6f536a7d9fd6fe.zip |
get rid of cast callbacks (config)
4 files changed, 0 insertions, 39 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/config/CastCallbacksImpl.java b/app/src/main/java/de/danoeh/antennapod/config/CastCallbacksImpl.java deleted file mode 100644 index b92544201..000000000 --- a/app/src/main/java/de/danoeh/antennapod/config/CastCallbacksImpl.java +++ /dev/null @@ -1,20 +0,0 @@ -package de.danoeh.antennapod.config; - -import android.app.Activity; -import android.content.Context; -import android.content.Intent; - -import de.danoeh.antennapod.activity.AudioplayerActivity; -import de.danoeh.antennapod.core.CastCallbacks; - -public class CastCallbacksImpl implements CastCallbacks { - @Override - public Class<? extends Activity> getCastActivity() { - return AudioplayerActivity.class; - } - - @Override - public Intent getCastActivityIntent(Context context) { - return new Intent(context, getCastActivity()); - } -} diff --git a/app/src/main/java/de/danoeh/antennapod/config/ClientConfigurator.java b/app/src/main/java/de/danoeh/antennapod/config/ClientConfigurator.java index 154b10cb3..932b9d22f 100644 --- a/app/src/main/java/de/danoeh/antennapod/config/ClientConfigurator.java +++ b/app/src/main/java/de/danoeh/antennapod/config/ClientConfigurator.java @@ -16,6 +16,5 @@ public class ClientConfigurator { ClientConfig.playbackServiceCallbacks = new PlaybackServiceCallbacksImpl(); ClientConfig.flattrCallbacks = new FlattrCallbacksImpl(); ClientConfig.dbTasksCallbacks = new DBTasksCallbacksImpl(); - ClientConfig.castCallbacks = new CastCallbacksImpl(); } } diff --git a/core/src/main/java/de/danoeh/antennapod/core/CastCallbacks.java b/core/src/main/java/de/danoeh/antennapod/core/CastCallbacks.java deleted file mode 100644 index a2f17ba93..000000000 --- a/core/src/main/java/de/danoeh/antennapod/core/CastCallbacks.java +++ /dev/null @@ -1,16 +0,0 @@ -package de.danoeh.antennapod.core; - -import android.app.Activity; -import android.content.Context; -import android.content.Intent; - -/** - * Callbacks for the Cast features on the core module. - */ -public interface CastCallbacks { - - Class<? extends Activity> getCastActivity(); - - Intent getCastActivityIntent(Context context); - -} diff --git a/core/src/main/java/de/danoeh/antennapod/core/ClientConfig.java b/core/src/main/java/de/danoeh/antennapod/core/ClientConfig.java index 3dfd6ea65..9bbccbb82 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/ClientConfig.java +++ b/core/src/main/java/de/danoeh/antennapod/core/ClientConfig.java @@ -31,8 +31,6 @@ public class ClientConfig { public static DBTasksCallbacks dbTasksCallbacks; - public static CastCallbacks castCallbacks; - private static boolean initialized = false; public static synchronized void initialize(Context context) { |