File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed
Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -235,19 +235,12 @@ - (void)observeValueForKeyPath:(NSString *)keyPath
235235}
236236
237237
238- RCT_EXPORT_METHOD (activateAudioSession:(BOOL )restorePreviousSessionOnDeactivation
239- async:(BOOL )async) {
240-
241- AVAudioSessionSetActiveOptions options = 0 ;
242- if (restorePreviousSessionOnDeactivation) {
243- options |= AVAudioSessionSetActiveOptionNotifyOthersOnDeactivation;
244- }
238+ RCT_EXPORT_METHOD (activateAudioSession:(BOOL )async) {
245239
246240 void (^activateBlock)(void ) = ^{
247241 AVAudioSession *session = [AVAudioSession sharedInstance ];
248242 NSError *error = nil ;
249243 [session setActive: YES
250- withOptions: options
251244 error: &error];
252245 if (error) {
253246 NSLog (@" Error activating audio session: %@ " , error.localizedDescription );
You can’t perform that action at this time.
0 commit comments