Skip to content
This repository was archived by the owner on Nov 14, 2018. It is now read-only.
This repository was archived by the owner on Nov 14, 2018. It is now read-only.

Allow to change return value of onPreDraw in View.doOnPreDraw  #542

Description

@cypressious

According to https://developer.android.com/reference/android/view/ViewTreeObserver.OnPreDrawListener#onPreDraw(), the return value of onPreDraw has the following use:

Return true to proceed with the current drawing pass, or false to cancel.

View.doOnPreDraw currently always returns true. Please allow to control the return value, e.g. by providing an overload with the parameter action: (view: View) -> Boolean

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions