Skip to content

Event observers in fragments are leaked when fragment is removed from activity #161

@goodsoft

Description

@goodsoft

As event observers are registered in onResume and unregistered in onPause callbacks, if fragment is removed from activity without activity pausing, event observers are not unregistered and are left hanging, leaking fragment and causing unwanted effects when the event is triggered.
Maybe we should additionally unregister event handlers in onDestroy?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions