Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5c2cbd1e authored by korelstar's avatar korelstar Committed by Niedermann IT-Dienstleistungen
Browse files

always show sync progress

parent a94a55dd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
    }