get rid of cast callbacks (config)
This commit is contained in:
parent
dedd454685
commit
982142634f
|
@ -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());
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -16,6 +16,5 @@ public class ClientConfigurator {
|
||||||
ClientConfig.playbackServiceCallbacks = new PlaybackServiceCallbacksImpl();
|
ClientConfig.playbackServiceCallbacks = new PlaybackServiceCallbacksImpl();
|
||||||
ClientConfig.flattrCallbacks = new FlattrCallbacksImpl();
|
ClientConfig.flattrCallbacks = new FlattrCallbacksImpl();
|
||||||
ClientConfig.dbTasksCallbacks = new DBTasksCallbacksImpl();
|
ClientConfig.dbTasksCallbacks = new DBTasksCallbacksImpl();
|
||||||
ClientConfig.castCallbacks = new CastCallbacksImpl();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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);
|
|
||||||
|
|
||||||
}
|
|
|
@ -31,8 +31,6 @@ public class ClientConfig {
|
||||||
|
|
||||||
public static DBTasksCallbacks dbTasksCallbacks;
|
public static DBTasksCallbacks dbTasksCallbacks;
|
||||||
|
|
||||||
public static CastCallbacks castCallbacks;
|
|
||||||
|
|
||||||
private static boolean initialized = false;
|
private static boolean initialized = false;
|
||||||
|
|
||||||
public static synchronized void initialize(Context context) {
|
public static synchronized void initialize(Context context) {
|
||||||
|
|
Loading…
Reference in New Issue