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

Commit 748a5297 authored by Cole Faust's avatar Cole Faust
Browse files

Fix BoxedPrimitiveEquality errorprone issue

Bug: 253827323
Test: m RUN_ERROR_PRONE=true javac-check
Change-Id: Ib12febd432c4a2499dd785aeb0214ee6902480dc
parent 69e702a2
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -2480,8 +2480,9 @@ public class LeAudioService extends ProfileService {
                    Log.i(TAG, "updateInbandRingtoneForTheGroup, setting inband ringtone to: "
                                + groupDescriptor.mInbandRingtoneEnabled + " for " + device
                                + " " + deviceDescriptor.mDevInbandRingtoneEnabled);
                    if (groupDescriptor.mInbandRingtoneEnabled
                                    == deviceDescriptor.mDevInbandRingtoneEnabled) {
                    if (Objects.equals(
                            groupDescriptor.mInbandRingtoneEnabled,
                            deviceDescriptor.mDevInbandRingtoneEnabled)) {
                        if (DBG) {
                            Log.d(TAG, "Device " + device + " has already set inband ringtone to "
                                            + groupDescriptor.mInbandRingtoneEnabled);
@@ -5054,7 +5055,7 @@ public class LeAudioService extends ProfileService {
                for (Map.Entry<BluetoothDevice, LeAudioDeviceDescriptor> deviceEntry
                        : mDeviceDescriptors.entrySet()) {
                    LeAudioDeviceDescriptor deviceDescriptor = deviceEntry.getValue();
                    if (deviceDescriptor.mGroupId != groupId) {
                    if (!Objects.equals(deviceDescriptor.mGroupId, groupId)) {
                        if (deviceDescriptor.mGroupId == LE_AUDIO_GROUP_ID_INVALID) {
                            numberOfUngroupedDevs++;
                        }