mirror of
https://github.com/nextcloud/notes-android.git
synced 2024-10-25 14:15:48 +03:00
Do not break push on error (see #713)
Signed-off-by: stefan-niedermann <info@niedermann.it>
This commit is contained in:
parent
35a36eae9c
commit
99e63c9ea9
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue