commit | 8800b9e1ffba134143f1f6f47c8cbbace632177a | [log] [tgz] |
---|---|---|
author | jackqdyulei <jackqdyulei@google.com> | Mon Sep 24 18:09:01 2018 -0700 |
committer | jackqdyulei <jackqdyulei@google.com> | Tue Oct 02 15:55:21 2018 -0700 |
tree | 3849c9085b667b5928e01db047fd1e33bfb1cbad | |
parent | b152e6dd1b134188a9442214a8b4d73f363377cc [diff] |
Use isConnected in CachedBluetoothDevice This method check whether it has connected profile, not physical connection between devices. It make more sense to use it in settings: 1. We only care about whether it has active profile(i.e. A2dp, hfp..) 2. Sometime when profile is disconnected, BluetoothDevice.isConnected() still return true. This may make UI flaky. Bug: 79947085 Test: RunSettingsRoboTests Change-Id: I44039704508a742c7a8aef0a035afcf169b08939