Version 0.2.4
-
Fixed a memory leak, the
BaseTaskManager
class was holding a reference to theBaseTaskManager.UIStateProvider
interface (which is part of theTaskManagerLifeCycleProxy
) and was thus leaking theActivity
orFragment
the proxy was attached to. To fix this theBaseTaskManager.UIStateProvider
interface has been removed, instead theTaskManagerLifeCycleProxy
now reports the UI state to theBaseTaskManager
using the newsetUIReady
method.TLDR: The
BaseTaskManager
no longer gets the ui-state, instead theTaskManagerLifeCycleProxy
sets the ui-state. -
Fixed a crash that occurred for
Fragments
nested withinFragments
that where using theTaskManager
class. This crash was caused because theFragment.getFragmentManager
method returns the child-FragmentManager
for nestedFragments
instead of theActivity
FragmentManager
. This has now been fixed by looping through theFragment.getParentFragment
method until we find theFragment
that's directly attached to theActivity
.