summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordaniel oeh <daniel.oeh@gmail.com>2014-05-31 11:18:29 +0200
committerdaniel oeh <daniel.oeh@gmail.com>2014-05-31 11:18:29 +0200
commitb2ae4c15d13840619fb09cc141b290449e40a6a4 (patch)
treed3c71baf582d36b71f8dff99b2c8ae9567949dc2
parentaeb3e9993846a1e8bd957a65e91da33ecb32e7fc (diff)
downloadAntennaPod-0.9.9.0.zip
Added missing contentIntent0.9.9.0
-rw-r--r--src/de/danoeh/antennapod/service/GpodnetSyncService.java13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/de/danoeh/antennapod/service/GpodnetSyncService.java b/src/de/danoeh/antennapod/service/GpodnetSyncService.java
index 1d652323a..c8c9fc31e 100644
--- a/src/de/danoeh/antennapod/service/GpodnetSyncService.java
+++ b/src/de/danoeh/antennapod/service/GpodnetSyncService.java
@@ -2,15 +2,16 @@ package de.danoeh.antennapod.service;
import android.app.Notification;
import android.app.NotificationManager;
+import android.app.PendingIntent;
import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.os.IBinder;
import android.support.v4.app.NotificationCompat;
import android.util.Log;
-import de.danoeh.antennapod.AppConfig;
import de.danoeh.antennapod.BuildConfig;
import de.danoeh.antennapod.R;
+import de.danoeh.antennapod.activity.MainActivity;
import de.danoeh.antennapod.feed.Feed;
import de.danoeh.antennapod.gpoddernet.GpodnetService;
import de.danoeh.antennapod.gpoddernet.GpodnetServiceAuthenticationException;
@@ -18,14 +19,16 @@ import de.danoeh.antennapod.gpoddernet.GpodnetServiceException;
import de.danoeh.antennapod.gpoddernet.model.GpodnetSubscriptionChange;
import de.danoeh.antennapod.gpoddernet.model.GpodnetUploadChangesResponse;
import de.danoeh.antennapod.preferences.GpodnetPreferences;
-import de.danoeh.antennapod.storage.*;
+import de.danoeh.antennapod.storage.DBReader;
+import de.danoeh.antennapod.storage.DBTasks;
+import de.danoeh.antennapod.storage.DownloadRequestException;
+import de.danoeh.antennapod.storage.DownloadRequester;
import de.danoeh.antennapod.util.NetworkUtils;
import java.util.Date;
import java.util.LinkedList;
import java.util.List;
import java.util.Set;
-import java.util.concurrent.ExecutionException;
/**
* Synchronizes local subscriptions with gpodder.net service. The service should be started with ACTION_SYNC as an action argument.
@@ -161,8 +164,12 @@ public class GpodnetSyncService extends Service {
description = getString(R.string.gpodnetsync_error_descr) + exception.getMessage();
id = R.id.notification_gpodnet_sync_error;
}
+
+ PendingIntent activityIntent = PendingIntent.getActivity(this, 0, new Intent(this, MainActivity.class), PendingIntent.FLAG_UPDATE_CURRENT);
+
Notification notification = builder.setContentTitle(title)
.setContentText(description)
+ .setContentIntent(activityIntent)
.setSmallIcon(R.drawable.stat_notify_sync_error)
.setAutoCancel(true)
.build();