From baeaf4cf8cacb7d31138df133472d851647487e0 Mon Sep 17 00:00:00 2001 From: lovegaoshi <106490582+lovegaoshi@users.noreply.github.com> Date: Fri, 25 Aug 2023 01:50:37 -0700 Subject: [PATCH] fix(android): updateOptions spread (#2108) --- src/trackPlayer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/trackPlayer.ts b/src/trackPlayer.ts index 549f2a271..4af7b1896 100644 --- a/src/trackPlayer.ts +++ b/src/trackPlayer.ts @@ -224,6 +224,7 @@ export async function updateOptions({ ...options }: UpdateOptions = {}): Promise { return TrackPlayer.updateOptions({ + ...options, android: { // Handle deprecated alwaysPauseOnInterruption option: alwaysPauseOnInterruption: @@ -238,7 +239,6 @@ export async function updateOptions({ nextIcon: resolveImportedAsset(options.nextIcon), rewindIcon: resolveImportedAsset(options.rewindIcon), forwardIcon: resolveImportedAsset(options.forwardIcon), - ...options, }); }