Skip to content

Commit 56fdbf5

Browse files
committed
fix: get notes test
Signed-off-by: alperozturk <alper_ozturk@proton.me>
1 parent 6c566b1 commit 56fdbf5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/src/main/java/it/niedermann/owncloud/notes/persistence/NotesServerSyncTask.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -292,10 +292,10 @@ private boolean pullRemoteChanges() {
292292
}
293293
} else if (cause.getClass() == NextcloudApiNotRespondingException.class || cause instanceof NextcloudApiNotRespondingException) {
294294
apiProvider.invalidateAPICache(ssoAccount);
295+
} else if (cause.getClass() == NextcloudNetworkException.class) {
296+
Log.w(TAG, "Network connectivity issue during sync");
297+
return true;
295298
}
296-
} else if (t.getClass() == NextcloudNetworkException.class) {
297-
Log.w(TAG, "Network connectivity issue during sync");
298-
return true;
299299
}
300300

301301
exceptions.add(t);

0 commit comments

Comments
 (0)