Skip to content

Commit a93db6d

Browse files
Copilotwysaid
andcommitted
Fix RECORD_AUDIO permission lint error for higher target SDK
Co-authored-by: wysaid <[email protected]>
1 parent 43d2425 commit a93db6d

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
2+
<uses-permission android:name="android.permission.RECORD_AUDIO" />
23
</manifest>

library/src/main/java/org/wysaid/view/CameraRecordGLSurfaceView.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*/
66

77

8+
import android.annotation.SuppressLint;
89
import android.content.Context;
910
import android.media.AudioFormat;
1011
import android.media.AudioRecord;
@@ -162,6 +163,7 @@ class AudioRecordRunnable implements Runnable {
162163
ShortBuffer audioBuffer;
163164
StartRecordingCallback recordingCallback;
164165

166+
@SuppressLint("MissingPermission")
165167
private AudioRecordRunnable(StartRecordingCallback callback) {
166168
recordingCallback = callback;
167169
try {

0 commit comments

Comments
 (0)