mirror of
https://github.com/nextcloud/notes-android.git
synced 2024-11-28 03:25:18 +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);
|
db = NoteSQLiteOpenHelper.getInstance(this);
|
||||||
if (db.getNoteServerSyncHelper().isSyncPossible()) {
|
if (db.getNoteServerSyncHelper().isSyncPossible()) {
|
||||||
adapter.removeAll();
|
adapter.removeAll();
|
||||||
swipeRefreshLayout.setRefreshing(true);
|
|
||||||
synchronize();
|
synchronize();
|
||||||
} else {
|
} else {
|
||||||
Toast.makeText(getApplicationContext(), getString(R.string.error_sync, getString(NotesClientUtil.LoginStatus.NO_NETWORK.str)), Toast.LENGTH_LONG).show();
|
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() {
|
private void synchronize() {
|
||||||
|
swipeRefreshLayout.setRefreshing(true);
|
||||||
db.getNoteServerSyncHelper().addCallbackPull(syncCallBack);
|
db.getNoteServerSyncHelper().addCallbackPull(syncCallBack);
|
||||||
db.getNoteServerSyncHelper().scheduleSync(false);
|
db.getNoteServerSyncHelper().scheduleSync(false);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue