material-components / material-components-android

Modular and customizable Material Design UI components for Android
Apache License 2.0
16.31k stars 3.06k forks source link

[Menu] context menu background color is strange #3969

Open manabu-nakamura opened 9 months ago

manabu-nakamura commented 9 months ago

Description: The context menu background color is strange. (MenuMainDemoFragment) Screenshot_20231231_102408 The context menu background color will be correct if some preferences are changed. Screenshot_20231231_102527 (Test2) Screenshot_20240108_221911 The context menu background color will be correct if the activity is recreated. Screenshot_20240108_221921

Expected behavior: The context menu background color is correct.

Minimal sample app repro: Catalog app (MenuMainDemoFragment) and Test2.zip

Android API version: 34

Material Library version: 1.12.0-alpha02

Device: Emulator 32.1.15 (API 32, 33, and 34)

pubiqq commented 9 months ago

Also see https://github.com/material-components/material-components-android/issues/2682#issuecomment-1442049217.

manabu-nakamura commented 9 months ago

Thank you very much. There is the closed issue!

manabu-nakamura commented 3 weeks ago

workaround: https://issuetracker.google.com/issues/276473378#comment2