Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/stefan-niedermann/nextcloud-notes.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/java/it/niedermann/owncloud/notes/persistence/NotesRepository.java')
-rw-r--r--app/src/main/java/it/niedermann/owncloud/notes/persistence/NotesRepository.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/src/main/java/it/niedermann/owncloud/notes/persistence/NotesRepository.java b/app/src/main/java/it/niedermann/owncloud/notes/persistence/NotesRepository.java
index 1ea2f7cb..74589cbc 100644
--- a/app/src/main/java/it/niedermann/owncloud/notes/persistence/NotesRepository.java
+++ b/app/src/main/java/it/niedermann/owncloud/notes/persistence/NotesRepository.java
@@ -187,7 +187,7 @@ public class NotesRepository {
public void onError(@NonNull Throwable t) {
Log.e(TAG, "… Error while importing " + account.getAccountName() + ": " + t.getMessage());
deleteAccount(account);
- SingleAccountHelper.setCurrentAccount(context, null);
+ SingleAccountHelper.commitCurrentAccount(context, null);
callback.onError(t);
}
});
@@ -195,7 +195,7 @@ public class NotesRepository {
Log.e(TAG, "… Could not find " + SingleSignOnAccount.class.getSimpleName() + " for account name " + account.getAccountName());
importExecutor.submit(() -> {
deleteAccount(account);
- SingleAccountHelper.setCurrentAccount(context, null);
+ SingleAccountHelper.commitCurrentAccount(context, null);
callback.onError(e);
});
}
@@ -203,7 +203,7 @@ public class NotesRepository {
Log.e(TAG, "… No network connection available to import " + account.getAccountName());
importExecutor.submit(() -> {
deleteAccount(account);
- SingleAccountHelper.setCurrentAccount(context, null);
+ SingleAccountHelper.commitCurrentAccount(context, null);
callback.onError(new NetworkErrorException());
});
}