diff options
| author | Ashwini Munigala <AshwiniM@codeaurora.org> | 2015-11-17 20:23:31 +0530 |
|---|---|---|
| committer | Steve Kondik <steve@cyngn.com> | 2015-12-08 02:27:39 -0800 |
| commit | 29e7f0d08edf5754ffc30a92f100f99efa566908 (patch) | |
| tree | 452441529e0fec0b1d71af579eb86fd64b1ef21e | |
| parent | 17746e4b4d1847a177b73c15c347bd43b4c1aaad (diff) | |
| download | frameworks_base-29e7f0d08edf5754ffc30a92f100f99efa566908.zip frameworks_base-29e7f0d08edf5754ffc30a92f100f99efa566908.tar.gz frameworks_base-29e7f0d08edf5754ffc30a92f100f99efa566908.tar.bz2 | |
Bluetooth: MAP: Update UI preference MAP disconnect status.
Update MAP profile disconnect status in bluetooth subSettings
menu. Add MAP profile entry in previous cachedBluetoothDevice
mProfile list and remove from current mProfile lst.
CRs-Fixed: 940352
Change-Id: Ibe53492fe0d5dafd13f4b22236db1430eb88f0f9
| -rw-r--r-- | packages/SettingsLib/src/com/android/settingslib/bluetooth/CachedBluetoothDevice.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/SettingsLib/src/com/android/settingslib/bluetooth/CachedBluetoothDevice.java b/packages/SettingsLib/src/com/android/settingslib/bluetooth/CachedBluetoothDevice.java index a6f873d..60bb472 100644 --- a/packages/SettingsLib/src/com/android/settingslib/bluetooth/CachedBluetoothDevice.java +++ b/packages/SettingsLib/src/com/android/settingslib/bluetooth/CachedBluetoothDevice.java @@ -149,6 +149,8 @@ public final class CachedBluetoothDevice implements Comparable<CachedBluetoothDe } else if (profile instanceof MapProfile && newProfileState == BluetoothProfile.STATE_DISCONNECTED) { profile.setPreferred(mDevice, false); + mProfiles.remove(profile); + mRemovedProfiles.add(profile); } else if (mLocalNapRoleConnected && profile instanceof PanProfile && ((PanProfile) profile).isLocalRoleNap(mDevice) && newProfileState == BluetoothProfile.STATE_DISCONNECTED) { |
