playback: add event handling to mediasession

Add event handling to the MediaSession. This completes the new
PlaybackSessionConnector class and possibly addresses the issue raised
in #20.
This commit is contained in:
OxygenCobalt
2021-06-01 10:16:30 -06:00
parent 1ddff8c6d3
commit ab28fb6323
3 changed files with 80 additions and 81 deletions
+4 -4
View File
@@ -28,13 +28,13 @@
<!--
These exact flags, in this exact order, in this exact formatting somehow make
the dialogs use the nicer material style. Please do not touch them.
the dialogs use the nicer material style. Please do not touch this or format it.
-->
<item name="viewInflaterClass">
com.google.android.material.theme.MaterialComponentsViewInflater
</item>
<!-- @formatter:off -->
<item name="viewInflaterClass">com.google.android.material.theme.MaterialComponentsViewInflater</item>
<item name="alertDialogTheme">@style/ThemeOverlay.MaterialComponents.Dialog.Alert</item>
<item name="materialAlertDialogTheme">@style/Theme.CustomDialog</item>
<!-- @formatter:on -->
</style>
<!-- Toolbar theme -->