rename for clarity

// FREEBIE
pull/1/head
Michael Kirk 8 years ago
parent ce048e21d2
commit 109cb6cdb6

@ -742,17 +742,17 @@ class CallViewController: UIViewController, CallObserver, CallServiceObserver, R
} }
} }
func didPressSpeakerphone(sender speakerphoneButton: UIButton) { func didPressSpeakerphone(sender button: UIButton) {
Logger.info("\(TAG) called \(#function)") Logger.info("\(TAG) called \(#function)")
speakerphoneButton.isSelected = !speakerphoneButton.isSelected button.isSelected = !button.isSelected
if let call = self.call { if let call = self.call {
callUIAdapter.setIsSpeakerphoneEnabled(call: call, isEnabled: speakerphoneButton.isSelected) callUIAdapter.setIsSpeakerphoneEnabled(call: call, isEnabled: button.isSelected)
} else { } else {
Logger.warn("\(TAG) pressed mute, but call was unexpectedly nil") Logger.warn("\(TAG) pressed mute, but call was unexpectedly nil")
} }
} }
func didPressTextMessage(sender speakerphoneButton: UIButton) { func didPressTextMessage(sender button: UIButton) {
Logger.info("\(TAG) called \(#function)") Logger.info("\(TAG) called \(#function)")
dismissIfPossible(shouldDelay:false) dismissIfPossible(shouldDelay:false)

Loading…
Cancel
Save