Prevent crash on categories screen when rotating.
The docs say that initLoader tries to reuse existing cursors. The error message was "IllegalStateException: attempt to re-open an already-closed object: SQLiteQuery: ...".
This commit is contained in:
parent
79ede18259
commit
b1ac0ff351
@ -62,7 +62,7 @@ class CategoriesViewBinder implements LoaderManager.LoaderCallbacks<Cursor> {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
activity.getSupportLoaderManager().initLoader(LOADER_ID, null, this);
|
activity.getSupportLoaderManager().restartLoader(LOADER_ID, null, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user