android.database.StaleDataException: Attempted to access a cursor after it has been closed.
at android.database.BulkCursorToCursorAdaptor.throwIfCursorIsClosed(BulkCursorToCursorAdaptor.java:63)
at android.database.BulkCursorToCursorAdaptor.getCount(BulkCursorToCursorAdaptor.java:69)
at android.database.AbstractCursor.moveToPosition(AbstractCursor.java:232)
at android.database.AbstractCursor.moveToNext(AbstractCursor.java:281)
at android.database.CursorWrapper.moveToNext(CursorWrapper.java:206)
at com.zhihu.matisse.internal.ui.AlbumPreviewActivity.a(AlbumPreviewActivity.java:71)
at com.zhihu.matisse.internal.b.b.a(AlbumMediaCollection.java:64)
at com.zhihu.matisse.internal.b.b.onLoadFinished(AlbumMediaCollection.java:33)
at android.support.v4.app.LoaderManagerImpl$LoaderObserver.onChanged(LoaderManagerImpl.java:248)
at android.arch.lifecycle.LiveData.considerNotify(LiveData.java:109)
at android.arch.lifecycle.LiveData.dispatchingValue(LiveData.java:126)
at android.arch.lifecycle.LiveData.setValue(LiveData.java:282)
at android.arch.lifecycle.k.setValue(MutableLiveData.java:33)
at android.support.v4.app.LoaderManagerImpl$LoaderInfo.setValue(LoaderManagerImpl.java:188)
at android.support.v4.app.LoaderManagerImpl$LoaderInfo.onLoadComplete(LoaderManagerImpl.java:173)
at android.support.v4.content.Loader.deliverResult(Loader.java:130)
at android.support.v4.content.CursorLoader.deliverResult(CursorLoader.java:107)
at android.support.v4.content.CursorLoader.onStartLoading(CursorLoader.java:153)
at android.support.v4.content.Loader.startLoading(Loader.java:283)
at android.support.v4.app.LoaderManagerImpl$LoaderInfo.onActive(LoaderManagerImpl.java:76)
at android.arch.lifecycle.LiveData$b.a(LiveData.java:410)
at android.arch.lifecycle.LiveData$LifecycleBoundObserver.a(LiveData.java:368)
at android.arch.lifecycle.g$a.a(LifecycleRegistry.java:354)
at android.arch.lifecycle.g.a(LifecycleRegistry.java:292)
at android.arch.lifecycle.g.e(LifecycleRegistry.java:332)
at android.arch.lifecycle.g.b(LifecycleRegistry.java:137)
at android.arch.lifecycle.g.a(LifecycleRegistry.java:123)
at android.arch.lifecycle.o.a(ReportFragment.java:121)
at android.arch.lifecycle.o.onStart(ReportFragment.java:81)
at android.app.Fragment.performStart(Fragment.java:2581)
at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1344)
at android.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManager.java:1586)
at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1658)
at android.app.FragmentManagerImpl.dispatchMoveToState(FragmentManager.java:3068)
at android.app.FragmentManagerImpl.dispatchStart(FragmentManager.java:3025)
at android.app.FragmentController.dispatchStart(FragmentController.java:195)
at android.app.Activity.performStart(Activity.java:8152)
at android.app.ActivityThread.handleStartActivity(ActivityThread.java:3918)
at android.app.servertransaction.TransactionExecutor.performLifecycleSequence(TransactionExecutor.java:235)
at android.app.servertransaction.TransactionExecutor.cycleToPath(TransactionExecutor.java:215)
at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:187)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:105)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2458)
at android.os.Handler.dispatchMessage(Handler.java:110)
at android.os.Looper.loop(Looper.java:219)
at android.app.ActivityThread.main(ActivityThread.java:8387)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1055)
android.database.StaleDataException: Attempted to access a cursor after it has been closed. at android.database.BulkCursorToCursorAdaptor.throwIfCursorIsClosed(BulkCursorToCursorAdaptor.java:63) at android.database.BulkCursorToCursorAdaptor.getCount(BulkCursorToCursorAdaptor.java:69) at android.database.AbstractCursor.moveToPosition(AbstractCursor.java:232) at android.database.AbstractCursor.moveToNext(AbstractCursor.java:281) at android.database.CursorWrapper.moveToNext(CursorWrapper.java:206) at com.zhihu.matisse.internal.ui.AlbumPreviewActivity.a(AlbumPreviewActivity.java:71) at com.zhihu.matisse.internal.b.b.a(AlbumMediaCollection.java:64) at com.zhihu.matisse.internal.b.b.onLoadFinished(AlbumMediaCollection.java:33) at android.support.v4.app.LoaderManagerImpl$LoaderObserver.onChanged(LoaderManagerImpl.java:248) at android.arch.lifecycle.LiveData.considerNotify(LiveData.java:109) at android.arch.lifecycle.LiveData.dispatchingValue(LiveData.java:126) at android.arch.lifecycle.LiveData.setValue(LiveData.java:282) at android.arch.lifecycle.k.setValue(MutableLiveData.java:33) at android.support.v4.app.LoaderManagerImpl$LoaderInfo.setValue(LoaderManagerImpl.java:188) at android.support.v4.app.LoaderManagerImpl$LoaderInfo.onLoadComplete(LoaderManagerImpl.java:173) at android.support.v4.content.Loader.deliverResult(Loader.java:130) at android.support.v4.content.CursorLoader.deliverResult(CursorLoader.java:107) at android.support.v4.content.CursorLoader.onStartLoading(CursorLoader.java:153) at android.support.v4.content.Loader.startLoading(Loader.java:283) at android.support.v4.app.LoaderManagerImpl$LoaderInfo.onActive(LoaderManagerImpl.java:76) at android.arch.lifecycle.LiveData$b.a(LiveData.java:410) at android.arch.lifecycle.LiveData$LifecycleBoundObserver.a(LiveData.java:368) at android.arch.lifecycle.g$a.a(LifecycleRegistry.java:354) at android.arch.lifecycle.g.a(LifecycleRegistry.java:292) at android.arch.lifecycle.g.e(LifecycleRegistry.java:332) at android.arch.lifecycle.g.b(LifecycleRegistry.java:137) at android.arch.lifecycle.g.a(LifecycleRegistry.java:123) at android.arch.lifecycle.o.a(ReportFragment.java:121) at android.arch.lifecycle.o.onStart(ReportFragment.java:81) at android.app.Fragment.performStart(Fragment.java:2581) at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1344) at android.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManager.java:1586) at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1658) at android.app.FragmentManagerImpl.dispatchMoveToState(FragmentManager.java:3068) at android.app.FragmentManagerImpl.dispatchStart(FragmentManager.java:3025) at android.app.FragmentController.dispatchStart(FragmentController.java:195) at android.app.Activity.performStart(Activity.java:8152) at android.app.ActivityThread.handleStartActivity(ActivityThread.java:3918) at android.app.servertransaction.TransactionExecutor.performLifecycleSequence(TransactionExecutor.java:235) at android.app.servertransaction.TransactionExecutor.cycleToPath(TransactionExecutor.java:215) at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:187) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:105) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2458) at android.os.Handler.dispatchMessage(Handler.java:110) at android.os.Looper.loop(Looper.java:219) at android.app.ActivityThread.main(ActivityThread.java:8387) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1055)