Skip to content

Commit 78a05fd

Browse files
fix: activation bug
1 parent 4ceeb1b commit 78a05fd

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

ios/VolumeManager.m

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)