Skip to content

Commit 5303693

Browse files
authored
Merge pull request #11 from scottbMedl/master
Fix uint cast for audio event listener
2 parents 8a91500 + 9853b02 commit 5303693

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ios/RNInCallManager/RNInCallManager.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ class RNInCallManager: NSObject, AVAudioPlayerDelegate {
377377
self.audioSessionRouteChangeObserver = self.startObserve(AVAudioSessionRouteChangeNotification, object: nil, queue: nil) { notification in
378378
guard notification.name == AVAudioSessionRouteChangeNotification && notification.userInfo != nil else { return }
379379

380-
if let rawValue = notification.userInfo?[AVAudioSessionRouteChangeReasonKey]?.unsignedIntegerValue {
380+
if let rawValue = notification.userInfo?[AVAudioSessionRouteChangeReasonKey] as? UInt {
381381
if let type = AVAudioSessionRouteChangeReason(rawValue: rawValue) {
382382
switch type {
383383
case .Unknown:

0 commit comments

Comments
 (0)