Commit 802eb054 authored by Daniel Wolf's avatar Daniel Wolf
Browse files

Do not continue if finishing

parent 0c1c54a9
......@@ -85,7 +85,7 @@ abstract class NavigationDrawerActivity : BaseActivity() {
populationJob = GlobalScope.launch {
createDrawer()
launch(Dispatchers.Main) {
displayDrawer()
if(!isFinishing) displayDrawer()
}
}
}
......@@ -102,6 +102,7 @@ abstract class NavigationDrawerActivity : BaseActivity() {
for(i in -1..100) pool.setMaxRecycledViews(i, 1)
recyclerViewReadyCallback = object : RecyclerViewReadyCallback {
override fun onLayoutReady() {
if(isFinishing) return
listAdapter.let {
if(it != null) {
val defaultItem = getDefaultItem()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment