Skip to content
Snippets Groups Projects
Commit 59cfee80 authored by Vlad Popa's avatar Vlad Popa Committed by Android (Google) Code Review
Browse files

Merge "Allow to reset to category unknown." into main

parents 98f4088c c491da46
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment