Skip to content

Commit

Permalink
Merge pull request #11 from scottbMedl/master
Browse files Browse the repository at this point in the history
Fix uint cast for audio event listener
  • Loading branch information
zxcpoiu authored Oct 31, 2016
2 parents 8a91500 + 9853b02 commit 5303693
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/RNInCallManager/RNInCallManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ class RNInCallManager: NSObject, AVAudioPlayerDelegate {
self.audioSessionRouteChangeObserver = self.startObserve(AVAudioSessionRouteChangeNotification, object: nil, queue: nil) { notification in
guard notification.name == AVAudioSessionRouteChangeNotification && notification.userInfo != nil else { return }

if let rawValue = notification.userInfo?[AVAudioSessionRouteChangeReasonKey]?.unsignedIntegerValue {
if let rawValue = notification.userInfo?[AVAudioSessionRouteChangeReasonKey] as? UInt {
if let type = AVAudioSessionRouteChangeReason(rawValue: rawValue) {
switch type {
case .Unknown:
Expand Down

0 comments on commit 5303693

Please sign in to comment.