Disable VT when TTY is enabled during a VOLTE call.
Add a listener to TelephonyCS to track when TTY turns on/off.
Ensure that connections remove their local VT capability when TTY turns
off.
Also, did a bit of opportunistic code cleanup to remove the TTyManager
class which is not used in Telephony. This in turn enabled the removal
of the TelephonyGlobals class since I could move setup of the
TelecomAccountRegistry into PhoneGlobals instead. Yay, less globals!
Test: Start VOLTE call with TTY disabled; turn on TTY and ensure VT
button goes away.
Test: Continue VOLTE call with TTY disabled; turn off TTY and ensure VT
button shows up again.
Bug: 77937629
Change-Id: Ia2c98e31c152d7a1136c06913f773b451a1952c7
6 files changed