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
21.96k stars 1.71k forks source link

Page.IsBusy activity idicators gets stuck/causes multiple to be displayed #23674

Open MarcelStommel opened 1 month ago

MarcelStommel commented 1 month ago

Description

When a page with IsBusy = true is navigated back from, the activity indicator stays displayed and if another page with IsBusy = true is navigated to, another activity indicator is layered on top. I expect the activity indicator to disappear when navigating away, thereby also preventing multiple activity indicators stacked on top of each other.

Steps to Reproduce

  1. Start the public reproduction project and navigate to the second page using the button.
  2. Toggle IsBusy using the button and navigate back using either the device's back button or the back button in the toolbar
  3. The activity indicator will stay active and now display on the first
  4. Going to the second page and toggling IsBusy again will layer another activity indicator on top of the existing one

I kinda expect the activity indicator to disappear when the page is navigated away from

Link to public reproduction project repository

https://github.com/MarcelStommel/IsBusyExample

Version with bug

8.0.21 SR4.1

Is this a regression from previous behavior?

No, this is something new

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

Android 11

Did you find any workaround?

Setting IsBusy = false in the OnBackButtonPressed method makes the activity indicator disappear like expected

Relevant log output

No response

github-actions[bot] commented 1 month ago

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

Zhanglirong-Winnie commented 1 month ago

This issue has been verified using Visual Studio 17.11.0 Preview 4.0(8.0.61&8.0.21&8.0.10). Can repro on android platform.