mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-11 00:23:58 -04:00
#2238 more fixed memory leaks
This commit is contained in:
parent
c7237771ba
commit
6888cd7dbe
@ -142,9 +142,10 @@ abstract class PageFragment : OnItemClickListener, BaseFragment(), FragmentActiv
|
|||||||
savedInstanceState: Bundle?
|
savedInstanceState: Bundle?
|
||||||
): View? = inflater.inflate(R.layout.fragment_page, container, false)
|
): View? = inflater.inflate(R.layout.fragment_page, container, false)
|
||||||
|
|
||||||
override fun onDestroy() {
|
override fun onDestroyView() {
|
||||||
|
super.onDestroyView()
|
||||||
compositeDisposable.clear()
|
compositeDisposable.clear()
|
||||||
super.onDestroy()
|
recycler_view.adapter = null
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun render(state: PageState<*>) {
|
private fun render(state: PageState<*>) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user