jeffdepiazza / WODJournal

https://github.com/jeffdepiazza/WODJournal.git
0 stars 0 forks source link

Loss of comments on list views for PRS and workout search #12

Closed jeffdepiazza closed 10 years ago

jeffdepiazza commented 10 years ago

For some reason... The list views will lose the comments text once the view scrolls past a certain point and back...its OK on initial list creation and when the screen rotates...do I need a holder or is this something with the way a row is recycled?

jeffdepiazza commented 10 years ago

Fixed this. What was happening...i was testing the PR records holder to see if it was empty for the comments and if it was, i was hiding those items. There apparently was a disconnect in the PR records holder and the row, as it was still hiding it when I testing what should have been the right position...it was getting hidden as that row was being recycled....so I made the view holder class and inserted it into the PR records and Workout search adapters....and then always set the view holder items to the PRH or SRH holder items up front to ensure they stayed in sync (which is what I think got out of place)...i then test the prh/srh items to see if they are empty and then hide as appropriate.