gpodnet: record last sync failed attempt also when it's an authentication error
This commit is contained in:
parent
b307d96e95
commit
4b79da7175
|
@ -301,6 +301,7 @@ public class GpodnetSyncService extends Service {
|
||||||
|
|
||||||
private void updateErrorNotification(GpodnetServiceException exception) {
|
private void updateErrorNotification(GpodnetServiceException exception) {
|
||||||
Log.d(TAG, "Posting error notification");
|
Log.d(TAG, "Posting error notification");
|
||||||
|
GpodnetPreferences.setLastSyncAttempt(false, System.currentTimeMillis());
|
||||||
|
|
||||||
final String title;
|
final String title;
|
||||||
final String description;
|
final String description;
|
||||||
|
@ -310,7 +311,6 @@ public class GpodnetSyncService extends Service {
|
||||||
description = getString(R.string.gpodnetsync_auth_error_descr);
|
description = getString(R.string.gpodnetsync_auth_error_descr);
|
||||||
id = R.id.notification_gpodnet_sync_autherror;
|
id = R.id.notification_gpodnet_sync_autherror;
|
||||||
} else {
|
} else {
|
||||||
GpodnetPreferences.setLastSyncAttempt(false, System.currentTimeMillis());
|
|
||||||
if (UserPreferences.gpodnetNotificationsEnabled()) {
|
if (UserPreferences.gpodnetNotificationsEnabled()) {
|
||||||
title = getString(R.string.gpodnetsync_error_title);
|
title = getString(R.string.gpodnetsync_error_title);
|
||||||
description = getString(R.string.gpodnetsync_error_descr) + exception.getMessage();
|
description = getString(R.string.gpodnetsync_error_descr) + exception.getMessage();
|
||||||
|
|
Loading…
Reference in New Issue