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

Commit 96839dcd authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Add Sap service into disconnect all enabled profiles process"

parents 6a86b6d7 34f1b706
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -2714,6 +2714,11 @@ public class AdapterService extends Service {
            Log.i(TAG, "disconnectAllEnabledProfiles: Disconnecting Hearing Aid Profile");
            mHearingAidService.disconnect(device);
        }
        if (mSapService != null && mSapService.getConnectionState(device)
                == BluetoothProfile.STATE_CONNECTED) {
            Log.i(TAG, "disconnectAllEnabledProfiles: Disconnecting Sap Profile");
            mSapService.disconnect(device);
        }

        return true;
    }