urbanairship / android-samples

DEPRECATED - Use https://github.com/urbanairship/android-library instead
Other
33 stars 39 forks source link

swapCursor -> changeCursor in InboxFragment #6

Closed marc-scig closed 11 years ago

marc-scig commented 12 years ago

changeCursor closes the old cursor before swapping in the new one. this doesn't address the weird CalledFromWrongThreadException issue but it does prevent the associated crash without requiring any hacky exception handling in the UACursorWrapper.

jtowle commented 12 years ago

If it leaves the cursor open, when is it closed?

marc-scig commented 12 years ago

I have no idea. Perhaps swapCursor(null) has that effect, although I'm doubtful.