sanyaade-g2g-repos / posit-mobile

Automatically exported from code.google.com/p/posit-mobile
GNU Lesser General Public License v2.1
0 stars 0 forks source link

List view does not update automatically to show that finds have been synced #253

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Go to the View Finds screen while there are still unsynced finds
2. Tap Menu > Sync

What is the expected output? What do you see instead?
It would be nice if the list view would update as each find is synced to show 
that they are no longer unsynced. Instead, one has to leave the list finds 
activity and return to it, forcing it to update.

Original issue reported on code.google.com by exciting...@gmail.com on 8 Nov 2011 at 1:23

GoogleCodeExporter commented 9 years ago
I guess at the moment this is sort of an OutsideIn specific issue, since the 
Synced label doesn't appear in the list when using BasicFind. In fact, 
BasicFind syncing doesn't seem to be working at all right now, but that's 
another issue.

Original comment by exciting...@gmail.com on 8 Nov 2011 at 2:36

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
This issue is still unresolved. I'm going to take a look at it since I think 
the solution might be simple.

Original comment by exciting...@gmail.com on 27 Nov 2011 at 4:30

GoogleCodeExporter commented 9 years ago
The patch attached contains fixes for the issue.

After pressing the "Sync" button, the list in "List Finds" will now update 
automatically to show "sync" for finds that are synced.

Original comment by jiaxian....@gmail.com on 28 Nov 2011 at 6:45

Attachments:

GoogleCodeExporter commented 9 years ago
The patch for this issue needs to be revised and given further testing.  
Because syncing is done though a background service, the ListAdapter can't be 
updated to "synced" when the "Sync Request" is made.  It can only be updated if 
the sync completes successfully.   There must be some way to do this by having 
the ListAdapter accept notifications from the SyncAdapter.  But I was unable to 
get that to work.

Original comment by ram8...@gmail.com on 6 Dec 2011 at 2:45