Index: webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioUtils.java |
diff --git a/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioUtils.java b/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioUtils.java |
index ef1d7aca229e8ce0ebd2e23d1bd079a48321b267..dd5ac91b2ddf53cd2fea1233c7a24a9e957b9259 100644 |
--- a/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioUtils.java |
+++ b/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioUtils.java |
@@ -148,6 +148,11 @@ public final class WebRtcAudioUtils { |
return Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP; |
} |
+ public static boolean runningOnMOrHigher() { |
+ // API Level 23. |
+ return Build.VERSION.SDK_INT >= Build.VERSION_CODES.M; |
+ } |
+ |
// Helper method for building a string of thread information. |
public static String getThreadInfo() { |
return "@[name=" + Thread.currentThread().getName() |