Skip to content

Commit 28f912a

Browse files
committed
Copilot Suggestion
1 parent 5b2e117 commit 28f912a

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

src/CommunityToolkit.Maui.MediaElement/Views/MediaManager.android.cs

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -381,13 +381,16 @@ protected virtual async partial ValueTask PlatformUpdateSource()
381381
hasSetSource = true;
382382
}
383383

384-
if (hasSetSource && Player.PlayerError is null)
384+
if(hasSetSource)
385385
{
386-
MediaElement.MediaOpened();
387-
}
388-
if(hasSetSource && isAndroidServiceEnabled)
389-
{
390-
UpdateNotifications();
386+
if(Player.PlayerError is null)
387+
{
388+
MediaElement.MediaOpened();
389+
}
390+
if(isAndroidServiceEnabled)
391+
{
392+
UpdateNotifications();
393+
}
391394
}
392395
}
393396

0 commit comments

Comments
 (0)