Maui icon indicating copy to clipboard operation
Maui copied to clipboard

[BUG] Popup background not rendering on android 34

Open aksik opened this issue 1 year ago • 7 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Did you read the "Reporting a bug" section on Contributing file?

  • [X] I have read the "Reporting a bug" section on Contributing file: https://github.com/CommunityToolkit/Maui/blob/main/CONTRIBUTING.md#reporting-a-bug

Current Behavior

Area outside popup is not grayed out on android api 34.

image

Expected Behavior

Expected to work as in previous apis:

image

Steps To Reproduce

Create default maui project, add community toolkit and add the simplest possible popup. As described here: https://learn.microsoft.com/en-us/dotnet/communitytoolkit/maui/views/popup

Link to public reproduction project repository

https://github.com/aksik/MauiApp6

Environment

- .NET MAUI CommunityToolkit:7.1
- OS:android api 34
- .NET MAUI:8.0.3

Anything else?

No response

aksik avatar Jan 19 '24 08:01 aksik

As a side note, if you turn on "Developer settings" => "Disable HW overlays" in the Android emulator, overlays will be displayed. https://issuetracker.google.com/issues/289117017

It might be a bug in the emulator.

[Disable HW overlays : ON]

[Disable HW overlays : OFF]

I'm sorry if I'm wrong.

cat0363 avatar Jan 22 '24 03:01 cat0363

This problem need fix. I am also have this error on emulator Знімок екрана 2024-02-17 154157

workmail20 avatar Feb 17 '24 13:02 workmail20

@workmail20 , There is a similar description below, but is this problem only with the Emulator? https://stackoverflow.com/questions/76641510/android-14-outside-of-alertdialog-doesnt-get-dim

cat0363 avatar Feb 19 '24 06:02 cat0363

@workmail20 , There is a similar description below, but is this problem only with the Emulator? https://stackoverflow.com/questions/76641510/android-14-outside-of-alertdialog-doesnt-get-dim

yes, I've tested and this is emulator only.

aksik avatar Feb 19 '24 10:02 aksik

Has anyone tested it on a device?

cat0363 avatar Feb 20 '24 03:02 cat0363

Has anyone tested it on a device?

yes - it's ok.

aksik avatar Feb 20 '24 08:02 aksik

If you test it on a device and there is no problem, but the problem only occurs in the emulator, it is most likely an issue with the emulator. At the moment, I'm sorry, but there is no solution other than the workaround I previously presented.

Screenshot_1708497029

cat0363 avatar Feb 21 '24 06:02 cat0363

Thanks @cat0363 for the feedback. I also just ran a test on my Android simulator and it works OK. I am guessing Android updated the emulators and fixed the issue.

I'm closing this issue, since it is not related to the .NET MAUI Community Toolkit itself.

vhugogarcia avatar Jul 23 '24 17:07 vhugogarcia