Skip to content

Support automatically unbind the request when the view is detached from the window #3142

@liujingxing

Description

@liujingxing

Many times, I don't want to restart a request when a view is attached to a window,Currently, I need to manually call View.dispose() to unbind the request

ivHead.load("...")
val parent = ivHead.parent as? ViewGroup
parent?.removeView(ivHead)

//it will restart a request,  This is not what I expected
parent?.addView(ivHead)

By the way,Glide won't restart a request when a view is attached to a window,

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions