Label tweaks for device listing

// FREEBIE
pull/1/head
Michael Kirk 8 years ago
parent be3001e4fa
commit ba97ff3f5f

@ -22,7 +22,15 @@ struct AudioSource: Hashable {
}
init(portDescription: AVAudioSessionPortDescription) {
self.init(localizedName: portDescription.portName,
// portDescription.portName works well for BT linked devices, but if we are using
// the built in mic, we have "iPhone Microphone" which is a little awkward.
// In that case, instead we prefer just the model name e.g. "iPhone" or "iPad"
let localizedName = portDescription.portType == AVAudioSessionPortBuiltInMic ?
UIDevice.current.localizedModel :
portDescription.portName
self.init(localizedName: localizedName,
image:#imageLiteral(resourceName: "button_phone_white"), // TODO
isBuiltInSpeaker: false,
portDescription: portDescription)

@ -140,7 +140,7 @@
"ATTACHMENT_TYPE_VOICE_MESSAGE" = "Voice Message";
/* action sheet button title to enable built in speaker during a call */
"AUDIO_ROUTE_BUILT_IN_SPEAKER" = "Built in Speaker";
"AUDIO_ROUTE_BUILT_IN_SPEAKER" = "Speaker";
/* An explanation of the consequences of blocking another user. */
"BLOCK_BEHAVIOR_EXPLANATION" = "Blocked users will not be able to call you or send you messages.";

Loading…
Cancel
Save