commit | c5bfbfbdb25dda0b1b6c42a678124a3719600733 | [log] [tgz] |
---|---|---|
author | Tyler Gunn <tgunn@google.com> | Mon Dec 09 13:31:30 2019 -0800 |
committer | Tyler Gunn <tgunn@google.com> | Mon Dec 09 13:31:30 2019 -0800 |
tree | e202c06ce16d4bd470e8ed12b65c3417df37f184 | |
parent | 44a7e4f1471597a2db6667f88e304bdaacee5105 [diff] |
Fix potential Telecom crash if TelephonyManager throws exception. TelephonyManager#isPotentialEmergencyNumber can throw an IllegalStateException, and it can also rethrow remote exceptions. Catching all is a safe means to prevent Telecom from crashing in either case. Fixes: 145790936 Test: Run unit test Change-Id: Ib5556db72b02c3e113ded2bf6c61d0353e60a3b9