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

Commit c491da46 authored by Vlad Popa's avatar Vlad Popa
Browse files

Allow to reset to category unknown.

Test: manual reset the device type to unknown
Bug: 302323921
Change-Id: I464b54625a7225b83a517901723811a01bb822be
parent c747d153
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -167,8 +167,7 @@ public class AudioDeviceInventory {
                ads = findBtDeviceStateForAddress(peerAddress, deviceType);
            }
            if (ads != null) {
                if (ads.getAudioDeviceCategory() != category
                        && category != AUDIO_DEVICE_CATEGORY_UNKNOWN) {
                if (ads.getAudioDeviceCategory() != category) {
                    ads.setAudioDeviceCategory(category);
                    mDeviceBroker.postUpdatedAdiDeviceState(ads);
                    mDeviceBroker.postPersistAudioDeviceSettings();