Do not break push on error (see #713)

Signed-off-by: stefan-niedermann <info@niedermann.it>
This commit is contained in:
stefan-niedermann 2020-02-04 22:18:38 +01:00 committed by Niedermann IT-Dienstleistungen
parent 35a36eae9c
commit 99e63c9ea9

View file

@ -462,10 +462,12 @@ public class NoteServerSyncHelper {
@Override
protected void onPostExecute(SyncResultStatus status) {
super.onPostExecute(status);
if (status.pullStatus != LoginStatus.OK || status.pushStatus != LoginStatus.OK) {
if (exceptions != null) {
for (Throwable e : exceptions) {
Log.e(TAG, e.getMessage(), e);
}
}
if (status.pullStatus != LoginStatus.OK || status.pushStatus != LoginStatus.OK) {
String statusMessage = context.getApplicationContext().getString(R.string.error_sync, context.getApplicationContext().getString(
// Since we can only display one snackbar at a time, let's first fix the pullStatus errors.
status.pushStatus == LoginStatus.OK