get rid of cast callbacks (config)

This commit is contained in:
Domingos Lopes 2016-04-17 02:09:10 -04:00
parent dedd454685
commit 982142634f
4 changed files with 0 additions and 39 deletions

View File

@ -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());
}
}

View File

@ -16,6 +16,5 @@ public class ClientConfigurator {
ClientConfig.playbackServiceCallbacks = new PlaybackServiceCallbacksImpl();
ClientConfig.flattrCallbacks = new FlattrCallbacksImpl();
ClientConfig.dbTasksCallbacks = new DBTasksCallbacksImpl();
ClientConfig.castCallbacks = new CastCallbacksImpl();
}
}

View File

@ -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);
}

View File

@ -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) {