commit | bb98165a3ce47ba9b461fbd1519fa1f8460fabce | [log] [tgz] |
---|---|---|
author | Daniel Velazco <velazcod@google.com> | Tue Jul 21 14:58:57 2020 -0700 |
committer | Daniel Velazco <velazcod@google.com> | Wed Jul 22 18:08:33 2020 +0000 |
tree | 82fb1e7054696efc78033f6cf27743963302a16e | |
parent | d08243c37cb8aa975fac6ad25e9538c0123c77a9 [diff] |
Log the correct string to avoid a crash when HFP client fails to dial When a HFP client fails to initiate a call, the error logged was trying to cast message.obj to a String when it is a BluetoothHeadsetClientCall, this was causing a ClassCastException. Replacing with c.toString(true) outputs the correct loggable string. Test: atest --host bluetooth_test_common Tag: #stability Bug: 157082875 Change-Id: I21ccdb9e09eaf12904056baee695ef155e876982