From 3fbc5a1bd5d56fecca9b3339bec04d1d9cd476ed Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Tue, 22 Jul 2014 19:27:19 -0700 Subject: Fix DownloadService.START_PLAY not going anywhere --- src/github/daneren2005/dsub/receiver/PlayActionReceiver.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/github/daneren2005/dsub/receiver/PlayActionReceiver.java b/src/github/daneren2005/dsub/receiver/PlayActionReceiver.java index a5f4f561..60814cc6 100644 --- a/src/github/daneren2005/dsub/receiver/PlayActionReceiver.java +++ b/src/github/daneren2005/dsub/receiver/PlayActionReceiver.java @@ -19,18 +19,22 @@ import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.os.Bundle; +import android.util.Log; import github.daneren2005.dsub.service.DownloadService; import github.daneren2005.dsub.util.Constants; public class PlayActionReceiver extends BroadcastReceiver { + private static final String TAG = PlayActionReceiver.class.getSimpleName(); + @Override public void onReceive(Context context, Intent intent) { if(intent.hasExtra(Constants.TASKER_EXTRA_BUNDLE)) { Bundle data = intent.getBundleExtra(Constants.TASKER_EXTRA_BUNDLE); Boolean startShuffled = data.getBoolean(Constants.INTENT_EXTRA_NAME_SHUFFLE); - Intent start = new Intent(DownloadService.START_PLAY); + Intent start = new Intent(context, DownloadService.class); + start.setAction(DownloadService.START_PLAY); start.putExtra(Constants.INTENT_EXTRA_NAME_SHUFFLE, startShuffled); context.startService(start); } -- cgit v1.2.3