Skip to content
Snippets Groups Projects
Commit 3697cede authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Browser: Cancel adapter scope on destroy

parent 4b8ff286
No related branches found
No related tags found
No related merge requests found
Pipeline #10667 passed with stage
in 3 minutes and 51 seconds
......@@ -217,6 +217,11 @@ abstract class BaseBrowserFragment : MediaBrowserFragment<BrowserModel>(), IRefr
viewModel.stop()
}
override fun onDestroy() {
adapter.cancel()
super.onDestroy()
}
override fun onSaveInstanceState(outState: Bundle) {
outState.putString(KEY_MRL, mrl)
outState.putParcelable(KEY_MEDIA, currentMedia)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment