Closed emmby closed 9 years ago
whoops, you'll also need
@Override
public void onChange() {
onContentChanged();
}
Hm, I don't see a way to update a PR that I created via the web interface. Clearly, I should not take this shortcut next time :)
This should definitively be merged, the OrmLiteCursorLoader class implements the DaoObserver interface whereas BaseOrmLiteLoader doesn't. No reason for this IMOO.
Done.
This generates compilation failures in OrmLitePreparedQueryLoader
and OrmLiteQueryForAllLoader
because of no onChange()
method. What am I missing?
See 2nd comment in this thread from @emmby . (and also the other comments !!)
Duh. Ok. Fixed.
Loaders are supposed to watch for changes to the underlying dataset. Use Dao.registerObserver and Dao.unregisterObserver to start and stop watching for changes.