From 5c2cbd1e5fab201873e9af448d3a290081767032 Mon Sep 17 00:00:00 2001 From: korelstar Date: Thu, 7 Jun 2018 21:58:49 +0200 Subject: [PATCH] always show sync progress --- .../owncloud/notes/android/activity/NotesListViewActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/it/niedermann/owncloud/notes/android/activity/NotesListViewActivity.java b/app/src/main/java/it/niedermann/owncloud/notes/android/activity/NotesListViewActivity.java index 343cd33a..a9bff2eb 100644 --- a/app/src/main/java/it/niedermann/owncloud/notes/android/activity/NotesListViewActivity.java +++ b/app/src/main/java/it/niedermann/owncloud/notes/android/activity/NotesListViewActivity.java @@ -558,7 +558,6 @@ public class NotesListViewActivity extends AppCompatActivity implements ItemAdap db = NoteSQLiteOpenHelper.getInstance(this); if (db.getNoteServerSyncHelper().isSyncPossible()) { adapter.removeAll(); - swipeRefreshLayout.setRefreshing(true); synchronize(); } else { Toast.makeText(getApplicationContext(), getString(R.string.error_sync, getString(NotesClientUtil.LoginStatus.NO_NETWORK.str)), Toast.LENGTH_LONG).show(); @@ -633,6 +632,7 @@ public class NotesListViewActivity extends AppCompatActivity implements ItemAdap } private void synchronize() { + swipeRefreshLayout.setRefreshing(true); db.getNoteServerSyncHelper().addCallbackPull(syncCallBack); db.getNoteServerSyncHelper().scheduleSync(false); }