aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordaneren2005 <daneren2005@gmail.com>2013-12-03 13:19:43 -0800
committerdaneren2005 <daneren2005@gmail.com>2013-12-03 13:19:43 -0800
commit12688c374af537ceef8289c5ce450463223fe14d (patch)
tree9e8fb258a3b81c5677564c84b66c9f6987085b91
parente91bd414058507f80732e468ce7d7df1b53cd96d (diff)
downloaddsub-12688c374af537ceef8289c5ce450463223fe14d.tar.gz
dsub-12688c374af537ceef8289c5ce450463223fe14d.tar.bz2
dsub-12688c374af537ceef8289c5ce450463223fe14d.zip
#203 Always send user to now playing
-rw-r--r--src/github/daneren2005/dsub/provider/DSubWidgetProvider.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/github/daneren2005/dsub/provider/DSubWidgetProvider.java b/src/github/daneren2005/dsub/provider/DSubWidgetProvider.java
index 3b4e545f..cfa993ec 100644
--- a/src/github/daneren2005/dsub/provider/DSubWidgetProvider.java
+++ b/src/github/daneren2005/dsub/provider/DSubWidgetProvider.java
@@ -259,10 +259,8 @@ public class DSubWidgetProvider extends AppWidgetProvider {
*/
private void linkButtons(Context context, RemoteViews views, boolean playerActive) {
Intent intent = new Intent(context, SubsonicFragmentActivity.class);
- if(playerActive) {
- intent.putExtra(Constants.INTENT_EXTRA_NAME_DOWNLOAD, true);
- intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);
- }
+ 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);
views.setOnClickPendingIntent(R.id.appwidget_coverart, pendingIntent);
views.setOnClickPendingIntent(R.id.appwidget_top, pendingIntent);