Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Toolbar] Drawable of menu item icon set wrong callback. #4147

Open
AlexMofer opened this issue Apr 18, 2024 · 0 comments
Open

[Toolbar] Drawable of menu item icon set wrong callback. #4147

AlexMofer opened this issue Apr 18, 2024 · 0 comments

Comments

@AlexMofer
Copy link

Description: Animatable drawable not keep running after expand hide menu items. Drawable of menu item icon set wrong callback.

Expected behavior: Drawable callback MUST BE CORRECT.

Source code:

    private static void startAnimate(MenuItem item) {
        if (item == null) {
            return;
        }
        final Drawable icon = item.getIcon();
        if (icon instanceof Animatable) {
            ((Animatable) icon).start();
        }
    }

Minimal sample app repro: ToolbarBug.zip

Android API version: 34

Material Library version: 1.11.0

Device: Any Device

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

No branches or pull requests

2 participants