~tomdroid-dev/tomdroid/two-way-sync

« back to all changes in this revision

Viewing changes to src/org/tomdroid/sync/LocalStorage.java

  • Committer: Rodja Trappe
  • Date: 2010-08-21 10:56:24 UTC
  • Revision ID: mail@rodja.net-20100821105624-vn64djf2bec1wxw2
skip creation of a new server revison if nothing changed

Show diffs side-by-side

added added

removed removed

Lines of Context:
106
106
                Cursor cursor = activity.getContentResolver().query(Tomdroid.CONTENT_URI,
107
107
                                NoteManager.FULL_PROJECTION, Note.IS_SYNCED + "=?", whereArgs, null);
108
108
 
109
 
                if (cursor == null || cursor.getCount() == 0) {
 
109
                if (cursor == null)     return notes;
 
110
                if (cursor.getCount() == 0) {
 
111
                        cursor.close();
110
112
                        return notes;
111
113
                }
112
 
 
 
114
                
113
115
                cursor.moveToFirst();
114
116
 
115
117
                do {