Resubscribe to library when a change of type enter occurs. Resolves #1093
Cette révision appartient à :
Parent
28a21d0b8f
révision
166fb9a8e4
1 fichiers modifiés avec 1 ajouts et 5 suppressions
|
@ -167,14 +167,10 @@ class LibraryController(
|
|||
super.onChangeStarted(handler, type)
|
||||
if (type.isEnter) {
|
||||
activity?.tabs?.setupWithViewPager(view?.view_pager)
|
||||
presenter.subscribeLibrary()
|
||||
}
|
||||
}
|
||||
|
||||
override fun onAttach(view: View) {
|
||||
super.onAttach(view)
|
||||
presenter.subscribeLibrary()
|
||||
}
|
||||
|
||||
override fun onDestroyView(view: View) {
|
||||
super.onDestroyView(view)
|
||||
adapter = null
|
||||
|
|
Référencer dans un nouveau ticket