This repository has been archived by the owner on May 1, 2024. It is now read-only.
[Bug] Application.RequestedThemeChanged raised twice on iOS when switching to home screen and back #12512
Labels
a/darkmode
in-progress
This issue has an associated pull request that may resolve it!
p/iOS 🍎
t/bug 🐛
Description
Steps to Reproduce
Application.RequestedThemeChanged
event and set a breakpoint on the event handler (or log it somewhere)Expected Behavior
No ThemeChanged event should fire at all (because it didn't change!).
Actual Behavior
The ThemeChanged event fires twice: once to the theme that it isn't and then once back to the actual current theme.
Basic Information
<PackageReference Include="Xamarin.Forms" Version="4.8.0.1451" />
Screenshots
Watch video here:
XamarinDoubleThemeChangeVideo.zip
Reproduction Link
Clone repo: https://github.com/Eilon/XamarinThemeChange
Workaround
No workaround needed per se because you ultimately get the right theme. But my app does extra work because of the double theme change.
The text was updated successfully, but these errors were encountered: