From 2d0e7b7a63d492f0f0156a283fae7c87004f6b49 Mon Sep 17 00:00:00 2001 From: Nick Date: Fri, 1 Nov 2024 16:58:27 +0100 Subject: [PATCH] Update MediaControllerViewModel.kt --- .../org/akanework/gramophone/ui/MediaControllerViewModel.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/org/akanework/gramophone/ui/MediaControllerViewModel.kt b/app/src/main/kotlin/org/akanework/gramophone/ui/MediaControllerViewModel.kt index 1e9b0e830..cca83406c 100644 --- a/app/src/main/kotlin/org/akanework/gramophone/ui/MediaControllerViewModel.kt +++ b/app/src/main/kotlin/org/akanework/gramophone/ui/MediaControllerViewModel.kt @@ -130,7 +130,7 @@ class MediaControllerViewModel(application: Application) : AndroidViewModel(appl future.get().resultCode == SessionResult.RESULT_ERROR_NOT_SUPPORTED))) { future = listenerIterator.next()(controller, command, args) } - return future + return future ?: super.onCustomCommand(controller, command, args) } private class LifecycleHost : LifecycleOwner {