Skip to content

No foreground after screen rotation #7

Description

@dawidhermann

On all android versions lower than 6 after screen rotation Foreground Button lose his foreground drawable. After some debuging i realize that onLayout was called twice - second time with changed = false, and then ForegroundDelegate.draw() was called, so when ForegroundDelegate tried to draw something mForegroundBoundsChanged was false. When i removed if (mForegroundBoundsChanged) statement everything was fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions