From 5f3d5dbb36b627ab1e0a32f267d7260eed3af24a Mon Sep 17 00:00:00 2001 From: Anton Yurchak Date: Sun, 23 Apr 2017 19:58:12 +0100 Subject: [PATCH] Do not reset MPNowPlayingInfoCenter if showIniOSMediaCenter is not set. --- ios/ReactNativeAudioStreaming.m | 2 -- 1 file changed, 2 deletions(-) diff --git a/ios/ReactNativeAudioStreaming.m b/ios/ReactNativeAudioStreaming.m index 0c03015..684ce38 100644 --- a/ios/ReactNativeAudioStreaming.m +++ b/ios/ReactNativeAudioStreaming.m @@ -444,8 +444,6 @@ - (void)setNowPlayingInfo:(bool)isPlaying appName ? appName : @"AppName", MPMediaItemPropertyTitle, [NSNumber numberWithFloat:isPlaying ? 1.0f : 0.0], MPNowPlayingInfoPropertyPlaybackRate, nil]; [MPNowPlayingInfoCenter defaultCenter].nowPlayingInfo = nowPlayingInfo; - } else { - [MPNowPlayingInfoCenter defaultCenter].nowPlayingInfo = nil; } }