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

Commit ebb81883 authored by xutianguo's avatar xutianguo Committed by android-build-merger
Browse files

Merge "CachedBluetoothDevice: Simplify ProfleConnectionState check" am:...

Merge "CachedBluetoothDevice: Simplify ProfleConnectionState check" am: 4e1034cc am: ee50c2e5 am: e38eafad
am: cc8763c1

Change-Id: I01f0b946e379a9b61cd853a86d7ba32d7c5e35fb
parents 230ab39d cc8763c1
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -335,8 +335,7 @@ public class CachedBluetoothDevice implements Comparable<CachedBluetoothDevice>
    }

    public int getProfileConnectionState(LocalBluetoothProfile profile) {
        if (mProfileConnectionState == null ||
                mProfileConnectionState.get(profile) == null) {
        if (mProfileConnectionState.get(profile) == null) {
            // If cache is empty make the binder call to get the state
            int state = profile.getConnectionStatus(mDevice);
            mProfileConnectionState.put(profile, state);