diff options
author | Domingos Lopes <domingos86lopes+github@gmail.com> | 2016-07-02 11:59:15 -0400 |
---|---|---|
committer | Domingos Lopes <domingos86lopes+github@gmail.com> | 2016-07-02 11:59:15 -0400 |
commit | 4b79da71754f6b1cf32311ed8999fa97f0e9cd29 (patch) | |
tree | 9abdf2113b421276b7a649d3b4a4d073def21607 /core/src | |
parent | b307d96e9502a39917778f879c9b46c6eee4c8bc (diff) | |
download | AntennaPod-4b79da71754f6b1cf32311ed8999fa97f0e9cd29.zip |
gpodnet: record last sync failed attempt also when it's an authentication error
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/service/GpodnetSyncService.java | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |