4 ms·
That's correct... I'm using the ihackernews.com API at the moment, so your votes aren't reflected in the data I get from there if you reload the app/page. If/wh
by jazzychad 16y ago
That's correct... I'm using the ihackernews.com API at the moment, so your votes aren't reflected in the data I get from there if you reload the app/page. If/when I use an html parser to fetch all the data directly from new.ycombinator this bug will be fixed. For now, if the number of points changes after you vote, it means the vote went through successfully.
- rudd 16y agoMaybe keep a list of my votes in the application cache and check against that as well as the ihackernews API? Same with my comments, too. I would really enjoy if it appeared to have read-your-writes consistency.
- jazzychad 16y agoYes, that's probably what I'll do in the interim. I'll have to figure out how to do these checks efficiently. Scrolling lists in Android is already clunky due to the way rows are rendered, so I'll need to make sure to not make it worse by checking the entire 'already-voted-list' for each row.
- kefs 16y agoCheck out the following video from io2010 regarding optimizing your listviews.. http://www.youtube.com/watch?v=wDBM6wVEO70 http://www.youtube.com/watch?v=wDBM6wVEO70