aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2013-12-12 21:56:06 -0800
committerScott Jackson <daneren2005@gmail.com>2013-12-12 21:56:06 -0800
commitd31ce581fcf1a708f57779dcb7ea28abe390e1ef (patch)
tree6495a99eb2f9e32477583e9592fb565ac993d7f3
parent4ef79da4359973adc076d0feaf61f5520759f30a (diff)
downloaddsub-d31ce581fcf1a708f57779dcb7ea28abe390e1ef.tar.gz
dsub-d31ce581fcf1a708f57779dcb7ea28abe390e1ef.tar.bz2
dsub-d31ce581fcf1a708f57779dcb7ea28abe390e1ef.zip
Revert previous change, breaks clicking notification/widget
-rw-r--r--src/github/daneren2005/dsub/provider/DSubWidgetProvider.java2
-rw-r--r--src/github/daneren2005/dsub/util/Util.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/github/daneren2005/dsub/provider/DSubWidgetProvider.java b/src/github/daneren2005/dsub/provider/DSubWidgetProvider.java
index 50e452ee..cfa993ec 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, 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);
diff --git a/src/github/daneren2005/dsub/util/Util.java b/src/github/daneren2005/dsub/util/Util.java
index 101aa8b5..ede21e52 100644
--- a/src/github/daneren2005/dsub/util/Util.java
+++ b/src/github/daneren2005/dsub/util/Util.java
@@ -872,7 +872,7 @@ public final class Util {
Intent notificationIntent = new Intent(context, SubsonicFragmentActivity.class);
notificationIntent.putExtra(Constants.INTENT_EXTRA_NAME_DOWNLOAD, true);
notificationIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);
- notification.contentIntent = PendingIntent.getActivity(context, 0, notificationIntent, Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);
+ notification.contentIntent = PendingIntent.getActivity(context, 0, notificationIntent, 0);
handler.post(new Runnable() {
@Override