|
@@ -31,6 +31,7 @@
|
|
|
|
|
|
package com.nextcloud.talk.webrtc;
|
|
|
|
|
|
+import android.annotation.SuppressLint;
|
|
|
import android.content.BroadcastReceiver;
|
|
|
import android.content.Context;
|
|
|
import android.content.Intent;
|
|
@@ -464,7 +465,7 @@ public class MagicAudioManager {
|
|
|
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) {
|
|
|
return audioManager.isWiredHeadsetOn();
|
|
|
} else {
|
|
|
- final AudioDeviceInfo[] devices = audioManager.getDevices(AudioManager.GET_DEVICES_ALL);
|
|
|
+ @SuppressLint("WrongConstant") final AudioDeviceInfo[] devices = audioManager.getDevices(AudioManager.GET_DEVICES_ALL);
|
|
|
for (AudioDeviceInfo device : devices) {
|
|
|
final int type = device.getType();
|
|
|
if (type == AudioDeviceInfo.TYPE_WIRED_HEADSET) {
|