From 88200c96ae53b22a14d4d37d32e4bb41a2073657 Mon Sep 17 00:00:00 2001 From: Ashutosh Gangwar Date: Sun, 10 Mar 2024 12:00:58 +0530 Subject: [PATCH] fix ShadowMediaSession --- .../github/ashutoshgngwr/noice/shadows/ShadowMediaSession.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/test/java/com/github/ashutoshgngwr/noice/shadows/ShadowMediaSession.kt b/app/src/test/java/com/github/ashutoshgngwr/noice/shadows/ShadowMediaSession.kt index ce62cd982..a4b8e6da1 100644 --- a/app/src/test/java/com/github/ashutoshgngwr/noice/shadows/ShadowMediaSession.kt +++ b/app/src/test/java/com/github/ashutoshgngwr/noice/shadows/ShadowMediaSession.kt @@ -49,6 +49,7 @@ class ShadowMediaSession : Player.Listener { customLayout: ImmutableList, callback: MediaSession.Callback, tokenExtras: Bundle, + sessionExtras: Bundle, bitmapLoader: BitmapLoader, playIfSuppressed: Boolean, isPeriodicPositionUpdateEnabled: Boolean, @@ -63,6 +64,7 @@ class ShadowMediaSession : Player.Listener { ReflectionHelpers.ClassParameter.from(ImmutableList::class.java, customLayout), ReflectionHelpers.ClassParameter.from(MediaSession.Callback::class.java, callback), ReflectionHelpers.ClassParameter.from(Bundle::class.java, tokenExtras), + ReflectionHelpers.ClassParameter.from(Bundle::class.java, sessionExtras), ReflectionHelpers.ClassParameter.from(BitmapLoader::class.java, bitmapLoader), ReflectionHelpers.ClassParameter.from(Boolean::class.javaPrimitiveType, playIfSuppressed), ReflectionHelpers.ClassParameter.from(