Skip to content
This repository was archived by the owner on Dec 17, 2020. It is now read-only.

Version 0.2.4

Compare
Choose a tag to compare
@Rolf-Smit Rolf-Smit released this 07 Dec 10:04
  • Fixed a memory leak, the BaseTaskManager class was holding a reference to the BaseTaskManager.UIStateProvider interface (which is part of the TaskManagerLifeCycleProxy) and was thus leaking the Activity or Fragment the proxy was attached to. To fix this the BaseTaskManager.UIStateProvider interface has been removed, instead the TaskManagerLifeCycleProxy now reports the UI state to the BaseTaskManager using the new setUIReady method.

    TLDR: The BaseTaskManager no longer gets the ui-state, instead the TaskManagerLifeCycleProxy sets the ui-state.

  • Fixed a crash that occurred for Fragments nested within Fragments that where using the TaskManager class. This crash was caused because the Fragment.getFragmentManager method returns the child-FragmentManager for nested Fragments instead of the Activity FragmentManager. This has now been fixed by looping through the Fragment.getParentFragment method until we find the Fragment that's directly attached to the Activity.