mirror of
https://github.com/nextcloud/notes-android.git
synced 2024-11-27 18:02:22 +03:00
always show sync progress
This commit is contained in:
parent
a94a55dd36
commit
5c2cbd1e5f
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue