Patched memory leak

This commit is contained in:
tom5079
2021-02-17 19:36:42 +09:00
parent 2f57ee4c83
commit 80b7293879
2 changed files with 15 additions and 9 deletions

View File

@@ -166,8 +166,7 @@ class MainActivity :
override fun onDestroy() {
super.onDestroy()
(binding.contents.recyclerview.adapter as SearchResultsAdapter).progressUpdateScope.cancel()
binding.contents.recyclerview.adapter = null
}
@OptIn(ExperimentalStdlibApi::class)