Skip to content

Commit 840c2b6

Browse files
authored
Fixed typo with android:stopWithTask (#509)
android:stopWithTask requires `="true"` to work. This matches the full example further down.
1 parent 8975469 commit 840c2b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/maui/views/MediaElement.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public class MainActivity : MauiAppCompatActivity
8181
#### 2. Add the following to `AndroidManifest.xml` inside the `<application>` tag.
8282

8383
```csharp
84-
<service android:name="communityToolkit.maui.media.services" android:stopWithTask android:exported="false" android:enabled="true" android:foregroundServiceType="mediaPlayback">
84+
<service android:name="communityToolkit.maui.media.services" android:stopWithTask="true" android:exported="false" android:enabled="true" android:foregroundServiceType="mediaPlayback">
8585
<intent-filter>
8686
<action android:name="androidx.media3.session.MediaSessionService"/>
8787
</intent-filter>

0 commit comments

Comments
 (0)