From 4b79da71754f6b1cf32311ed8999fa97f0e9cd29 Mon Sep 17 00:00:00 2001 From: Domingos Lopes Date: Sat, 2 Jul 2016 11:59:15 -0400 Subject: [PATCH] gpodnet: record last sync failed attempt also when it's an authentication error --- .../de/danoeh/antennapod/core/service/GpodnetSyncService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/de/danoeh/antennapod/core/service/GpodnetSyncService.java b/core/src/main/java/de/danoeh/antennapod/core/service/GpodnetSyncService.java index 7aad134e4..e9312b929 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/service/GpodnetSyncService.java +++ b/core/src/main/java/de/danoeh/antennapod/core/service/GpodnetSyncService.java @@ -301,6 +301,7 @@ public class GpodnetSyncService extends Service { private void updateErrorNotification(GpodnetServiceException exception) { Log.d(TAG, "Posting error notification"); + GpodnetPreferences.setLastSyncAttempt(false, System.currentTimeMillis()); final String title; final String description; @@ -310,7 +311,6 @@ public class GpodnetSyncService extends Service { description = getString(R.string.gpodnetsync_auth_error_descr); id = R.id.notification_gpodnet_sync_autherror; } else { - GpodnetPreferences.setLastSyncAttempt(false, System.currentTimeMillis()); if (UserPreferences.gpodnetNotificationsEnabled()) { title = getString(R.string.gpodnetsync_error_title); description = getString(R.string.gpodnetsync_error_descr) + exception.getMessage();