OSDN Git Service

Check TTY status at bringup
authorHall Liu <hallliu@google.com>
Mon, 24 Jul 2017 22:19:04 +0000 (15:19 -0700)
committerHall Liu <hallliu@google.com>
Mon, 24 Jul 2017 22:30:57 +0000 (15:30 -0700)
commit108ca20ea45017ca1984d14b4e5549596f7694db
treebf64775fb2691ecf4000c2cbce6fad7771d08f1a
parent717765f0f3de2ef9ae79eb032d41dc009ad8dbe6
Check TTY status at bringup

If Telecom gets initialized before the status bar, the receiver in
PhoneStatusBarPolicy may miss the TTY status intent that Telecom sends
out. Make a call to TelecomManager#getCurrentTtyMode to explicitly check
in order to show the icon correctly.

Change-Id: I51b33c3fcef83a1519b07584095440d8f01ed0cb
Fixes: 62475394
Test: manual
packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarPolicy.java