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, }); }