Voice Chat UI improvements

This commit is contained in:
Ilya Laktyushin
2020-12-13 17:11:55 +04:00
parent dc1006617b
commit 49df81422b
20 changed files with 767 additions and 510 deletions

View File

@@ -51,6 +51,7 @@ private enum ButtonDescription: Equatable {
case bluetooth
case airpods
case airpodsPro
case headphones
}
enum EndType {
@@ -205,7 +206,7 @@ final class CallControllerButtonsNode: ASDisplayNode {
case .speaker:
soundOutput = .speaker
case .headphones:
soundOutput = .bluetooth
soundOutput = .headphones
case let .bluetooth(type):
switch type {
case .generic:
@@ -296,7 +297,7 @@ final class CallControllerButtonsNode: ASDisplayNode {
case .speaker:
soundOutput = .speaker
case .headphones:
soundOutput = .builtin
soundOutput = .headphones
case let .bluetooth(type):
switch type {
case .generic:
@@ -467,6 +468,9 @@ final class CallControllerButtonsNode: ASDisplayNode {
case .airpodsPro:
image = .airpodsPro
title = strings.Call_Audio
case .headphones:
image = .headphones
title = strings.Call_Audio
}
buttonContent = CallControllerButtonItemNode.Content(
appearance: .blurred(isFilled: isFilled),