Loading android/app/src/com/android/bluetooth/le_audio/LeAudioService.java +10 −0 Original line number Diff line number Diff line Loading @@ -908,6 +908,11 @@ public class LeAudioService extends ProfileService { private class AudioManagerRemoveAudioDeviceCallback extends AudioDeviceCallback { @Override public void onAudioDevicesRemoved(AudioDeviceInfo[] removedDevices) { if (mAudioManager == null) { Log.e(TAG, "Callback called when LeAudioService is stopped"); return; } for (AudioDeviceInfo deviceInfo : removedDevices) { if (deviceInfo.getType() == AudioDeviceInfo.TYPE_BLE_HEADSET || deviceInfo.getType() == AudioDeviceInfo.TYPE_BLE_SPEAKER) { Loading @@ -925,6 +930,11 @@ public class LeAudioService extends ProfileService { private class AudioManagerAddAudioDeviceCallback extends AudioDeviceCallback { @Override public void onAudioDevicesAdded(AudioDeviceInfo[] addedDevices) { if (mAudioManager == null) { Log.e(TAG, "Callback called when LeAudioService is stopped"); return; } for (AudioDeviceInfo deviceInfo : addedDevices) { if (deviceInfo.getType() == AudioDeviceInfo.TYPE_BLE_HEADSET || deviceInfo.getType() == AudioDeviceInfo.TYPE_BLE_SPEAKER) { Loading Loading
android/app/src/com/android/bluetooth/le_audio/LeAudioService.java +10 −0 Original line number Diff line number Diff line Loading @@ -908,6 +908,11 @@ public class LeAudioService extends ProfileService { private class AudioManagerRemoveAudioDeviceCallback extends AudioDeviceCallback { @Override public void onAudioDevicesRemoved(AudioDeviceInfo[] removedDevices) { if (mAudioManager == null) { Log.e(TAG, "Callback called when LeAudioService is stopped"); return; } for (AudioDeviceInfo deviceInfo : removedDevices) { if (deviceInfo.getType() == AudioDeviceInfo.TYPE_BLE_HEADSET || deviceInfo.getType() == AudioDeviceInfo.TYPE_BLE_SPEAKER) { Loading @@ -925,6 +930,11 @@ public class LeAudioService extends ProfileService { private class AudioManagerAddAudioDeviceCallback extends AudioDeviceCallback { @Override public void onAudioDevicesAdded(AudioDeviceInfo[] addedDevices) { if (mAudioManager == null) { Log.e(TAG, "Callback called when LeAudioService is stopped"); return; } for (AudioDeviceInfo deviceInfo : addedDevices) { if (deviceInfo.getType() == AudioDeviceInfo.TYPE_BLE_HEADSET || deviceInfo.getType() == AudioDeviceInfo.TYPE_BLE_SPEAKER) { Loading