Skip to content

Commit

Permalink
Merge pull request #89 from hudashot/master
Browse files Browse the repository at this point in the history
Do not reset MPNowPlayingInfoCenter if showIniOSMediaCenter is not set.
  • Loading branch information
tlenclos authored May 7, 2017
2 parents efefaf4 + 5f3d5db commit df7baf5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions ios/ReactNativeAudioStreaming.m
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit df7baf5

Please sign in to comment.