diff --git a/src/CommunityToolkit.Maui.Maps/Handler/Map/MapHandler.Windows.cs b/src/CommunityToolkit.Maui.Maps/Handler/Map/MapHandler.Windows.cs index 361a7671a..e398a2037 100644 --- a/src/CommunityToolkit.Maui.Maps/Handler/Map/MapHandler.Windows.cs +++ b/src/CommunityToolkit.Maui.Maps/Handler/Map/MapHandler.Windows.cs @@ -440,7 +440,7 @@ void WebViewWebMessageReceived(WebView2 sender, CoreWebView2WebMessageReceivedEv if (!string.IsNullOrEmpty(clickedInfoWindowWebViewId)) { var clickedPin = VirtualView.Pins.SingleOrDefault(p => (p as Pin)?.Id.ToString().Equals(clickedInfoWindowWebViewId) ?? false); - + var hideInfoWindow = clickedPin?.SendInfoWindowClick(); if (hideInfoWindow is not false) { @@ -456,7 +456,7 @@ void WebViewWebMessageReceived(WebView2 sender, CoreWebView2WebMessageReceivedEv if (!string.IsNullOrEmpty(clickedPinWebViewId)) { var clickedPin = VirtualView.Pins.SingleOrDefault(p => (p as Pin)?.Id.ToString().Equals(clickedPinWebViewId) ?? false); - + var hideInfoWindow = clickedPin?.SendMarkerClick(); if (hideInfoWindow is not false) { diff --git a/src/CommunityToolkit.Maui.MediaElement/Views/MediaManager.windows.cs b/src/CommunityToolkit.Maui.MediaElement/Views/MediaManager.windows.cs index 8f4665576..21f840f1b 100644 --- a/src/CommunityToolkit.Maui.MediaElement/Views/MediaManager.windows.cs +++ b/src/CommunityToolkit.Maui.MediaElement/Views/MediaManager.windows.cs @@ -171,8 +171,8 @@ protected virtual partial void PlatformUpdateShouldShowPlaybackControls() protected virtual partial void PlatformUpdatePosition() { - if (MediaElement is not null - && Player is not null + if (MediaElement is not null + && Player is not null && allowUpdatePositionStates.Contains(MediaElement.CurrentState)) { MediaElement.Position = Player.MediaPlayer.Position; @@ -208,8 +208,8 @@ protected virtual partial void PlatformUpdateShouldKeepScreenOn() if (MediaElement.ShouldKeepScreenOn) { if (MediaElement != null - && allowUpdatePositionStates.Contains(MediaElement.CurrentState) - && !displayActiveRequested) + && allowUpdatePositionStates.Contains(MediaElement.CurrentState) + && !displayActiveRequested) { DisplayRequest.RequestActive(); displayActiveRequested = true;