Ah, excellent point -- that's a bug in my demos.
Add the following line to onLoadFinished()
:
this.loader=(SQLiteCursorLoader)loader;
That will be called as part of the configuration change, to deliver our last-loaded Cursor
, and we can hold onto the Loader
there.
I will update my repository with this fix soonish.
Thanks!