dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.26k stars 1.76k forks source link

Android toolbar navigation button tooltip gets stuck when rotated #18533

Open danwinp opened 1 year ago

danwinp commented 1 year ago

Description

Tap and holding the navigation up button shows the tooltip. When you rotate while holding the button and let go, the tooltip bubble gets stuck. I have tried a new project in Android Studio to reproduce this issue but it did not happen so it made me think that there might be an issue with .NET MAUI.

Portrait Tooltip stuck Landscape Tooltip stuck

Steps to Reproduce

Steps to Reproduce

  1. Create a File > New .NET MAUI App
  2. Add content in MainPage that has a button and that can navigate to a new page
  3. Deploy the app to a physical Pixel or OnePlus Android Phone (I can't reproduce this in Samsung phones)
  4. Navigate to the next page
  5. Tap and hold the back button in toolbar
  6. Rotate device
  7. Let go of back button

Expected outcome: Tooltip disappears Actual outcome: Tooltip is stuck in page

I've provided a public repo that can replicate this issue.

Link to public reproduction project repository

https://github.com/danwinp/NetMAUIIssues/blob/issues/ToolTipAndroidStuckAfterRotation/PaddingGridIssue/PaddingGridIssue/NextPage.xaml

Version with bug

8.0.0-rc.2.9373

Is this a regression from previous behavior?

Yes, this used to work in Xamarin.Forms

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

Android 11 and up

Did you find any workaround?

Tapping anywhere on screen will make the tooltip disappear

Relevant log output

No response

ninachen03 commented 7 months ago

Verified this issue with Visual Studio 17.10.0 Preview 3( 8.0.0-rc.1.9171 & 8.0.20).I can repro this issue on android(xiaomi)physical.