Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
Update VisualElement.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
jfversluis committed Apr 24, 2020
1 parent cb446bb commit eaa2fae
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Xamarin.Forms.Core/VisualElement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,7 @@ void SetEffectiveFlowDirection(EffectiveFlowDirection value, bool fireFlowDirect

internal VisualElement()
{
if (Device.Flags?.IndexOf(ExperimentalFlags.AppThemeExperimental) > 0)
Application.Current.RequestedThemeChanged += (s, a) => OnRequestedThemeChanged(a.RequestedTheme);
Application.Current.RequestedThemeChanged += (s, a) => OnRequestedThemeChanged(a.RequestedTheme);
}

protected virtual void OnRequestedThemeChanged(OSAppTheme newValue)
Expand Down

0 comments on commit eaa2fae

Please sign in to comment.