Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7127db19 authored by Haijie Hong's avatar Haijie Hong
Browse files

Don't remove map&pbap toggle in device details UI

Bug: 409950785
Test: atest LocalBluetoothProfileManagerTest
Flag: EXEMPT minor fix
Change-Id: I1aedc11087ede3f339b24d02d26b405008c83b9d
parent 6be02c16
Loading
Loading
Loading
Loading
+8 −4
Original line number Diff line number Diff line
@@ -708,15 +708,19 @@ public class LocalBluetoothProfileManager {
            removedProfiles.remove(mPanProfile);
        }

        if ((mMapProfile != null) &&
            (mMapProfile.getConnectionStatus(device) == BluetoothProfile.STATE_CONNECTED)) {
        if ((mMapProfile != null
                        && mMapProfile.getConnectionStatus(device)
                                == BluetoothProfile.STATE_CONNECTED)
                || removedProfiles.contains(mMapProfile)) {
            profiles.add(mMapProfile);
            removedProfiles.remove(mMapProfile);
            mMapProfile.setEnabled(device, true);
        }

        if ((mPbapProfile != null) &&
            (mPbapProfile.getConnectionStatus(device) == BluetoothProfile.STATE_CONNECTED)) {
        if ((mPbapProfile != null
                        && mPbapProfile.getConnectionStatus(device)
                                == BluetoothProfile.STATE_CONNECTED)
                || removedProfiles.contains(mPbapProfile)) {
            profiles.add(mPbapProfile);
            removedProfiles.remove(mPbapProfile);
            mPbapProfile.setEnabled(device, true);