commit | f9da437a5fcb84346a12bd0fac8659cc8f5dab59 | [log] [tgz] |
---|---|---|
author | Michał Narajowski <narajn@google.com> | Thu Mar 02 15:09:23 2023 +0000 |
committer | Michał Narajowski <narajn@google.com> | Mon Mar 06 08:06:18 2023 +0000 |
tree | a210271ca20b8ed57060f06174815ab47d42d855 | |
parent | 14e56413217bedbf1ba011ef521316b91fb9fed2 [diff] |
CachedBluetoothDevice: Fix detecting connect fail Transition from CONNECTING to DISCONNECTED doesn't have to mean that the connection has failed. Add check to verify that connection policy for profile is ALLOWED and only then trigger connection failed. Setting connection failed results in "Problem connecting." in Bluetooth connected devices UI. Bug: 268587046 Test: BluetoothInstrumentationTest Change-Id: I1eb116e4ae1735fafe3d7f35fc0bf51d21cb87d3