diff options
author | Scott Jackson <daneren2005@gmail.com> | 2013-12-03 21:29:58 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2013-12-03 21:29:58 -0800 |
commit | e0425128ce3bcaba104ff10e471e64f058123792 (patch) | |
tree | 8e83385c8e8a9fd41e3d0bf40084fca6cec4b9ea | |
parent | 102d6aa9f59e54c9f6dff2663fd8b04f29a62c70 (diff) | |
download | dsub-e0425128ce3bcaba104ff10e471e64f058123792.tar.gz dsub-e0425128ce3bcaba104ff10e471e64f058123792.tar.bz2 dsub-e0425128ce3bcaba104ff10e471e64f058123792.zip |
Minor alterations to widget intents
-rw-r--r-- | src/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java | 1 | ||||
-rw-r--r-- | src/github/daneren2005/dsub/provider/DSubWidgetProvider.java | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java b/src/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java index d1390908..93a58445 100644 --- a/src/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java +++ b/src/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java @@ -54,6 +54,7 @@ import github.daneren2005.dsub.fragments.SelectPlaylistFragment; import github.daneren2005.dsub.fragments.SelectPodcastsFragment;
import github.daneren2005.dsub.fragments.SubsonicFragment;
import github.daneren2005.dsub.service.DownloadFile;
+import github.daneren2005.dsub.service.DownloadService;
import github.daneren2005.dsub.service.DownloadServiceImpl;
import github.daneren2005.dsub.updates.Updater;
import github.daneren2005.dsub.util.Constants;
diff --git a/src/github/daneren2005/dsub/provider/DSubWidgetProvider.java b/src/github/daneren2005/dsub/provider/DSubWidgetProvider.java index cfa993ec..50e452ee 100644 --- a/src/github/daneren2005/dsub/provider/DSubWidgetProvider.java +++ b/src/github/daneren2005/dsub/provider/DSubWidgetProvider.java @@ -261,7 +261,7 @@ public class DSubWidgetProvider extends AppWidgetProvider { Intent intent = new Intent(context, SubsonicFragmentActivity.class); intent.putExtra(Constants.INTENT_EXTRA_NAME_DOWNLOAD, true); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP); - PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, intent, 0); + PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, intent, Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP); views.setOnClickPendingIntent(R.id.appwidget_coverart, pendingIntent); views.setOnClickPendingIntent(R.id.appwidget_top, pendingIntent); |