-
I use a popup as an indicator. When a button is pressed, the indicator is displayed and processing begins, and the indicator closes after the processing is complete, but occasionally only the indicator background overlay remains, and the screen remains in an inoperable state. When this occurs, the indicator itself will not be displayed, and only the overlay will be displayed. This is most likely to occur if the interval between Show and Close is short. This issue does not occur on iOS. It occurs with a high probability only on Android. I'm currently working on creating code to reproduce the problem. For reference, here is the implementation of the methods I use for Show and Close:
I thought the problem might be that the indicator wasn't fully displayed or closed, so I used TaskCompletionSource and Popup's Opend and Closed events, but that wasn't the problem. As an aside, if you have Popup display and close processing written within the NavigatedTo event, and you have implemented this Popup display processing on screen A in Android, when you transition from screen A to screen B and then display and close the Popup within the NavigatedTo event when returning from screen B to screen A, the Popup's content will not be displayed and only the overlay will remain. This is similar to the above, but it may be a different issue. Has anyone encountered a similar issue and solved this problem? Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
@cat0363 I second this, having the same issue only noticed this very recently, not previously reported as an issue in our app, we are rolling back to an earlier version and will monitor if the issue is gone. |
Beta Was this translation helpful? Give feedback.
-
@LeoJHarris , Thank you for your comment.. I was able to find a solution to this problem. By using the Dispatcher.DispatchAsync method for displaying indicators, closing them, and updating the UI while indicators are displayed, and waiting with await, I resolved the issue where only the overlay remained. If I get the expected results in the app I'm implementing, I'll close this discussion. |
Beta Was this translation helpful? Give feedback.
-
Probably related to this issue: |
Beta Was this translation helpful? Give feedback.
The code below is what I wrote to solve this problem.