aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-07-22 19:27:19 -0700
committerScott Jackson <daneren2005@gmail.com>2014-07-22 19:27:19 -0700
commit3fbc5a1bd5d56fecca9b3339bec04d1d9cd476ed (patch)
treee1e51bac8a1bfc5c0536cb3f23e0def357df8a2d /src
parenta6bdf0783d252174d7fe8ed9b9ab4e85d64dee3a (diff)
downloaddsub-3fbc5a1bd5d56fecca9b3339bec04d1d9cd476ed.tar.gz
dsub-3fbc5a1bd5d56fecca9b3339bec04d1d9cd476ed.tar.bz2
dsub-3fbc5a1bd5d56fecca9b3339bec04d1d9cd476ed.zip
Fix DownloadService.START_PLAY not going anywhere
Diffstat (limited to 'src')
-rw-r--r--src/github/daneren2005/dsub/receiver/PlayActionReceiver.java6
1 files changed, 5 insertions, 1 deletions
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);
}