Fix lint warning

Suppress lint "DiscouragedPrivateApi" in Workarounds.java.
This commit is contained in:
Romain Vimont 2023-06-16 23:24:08 +02:00
parent 5bd7514871
commit 3b7e2ca9c8
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ public final class Workarounds {
}
@TargetApi(Build.VERSION_CODES.R)
@SuppressLint({"WrongConstant", "MissingPermission", "BlockedPrivateApi", "SoonBlockedPrivateApi"})
@SuppressLint("WrongConstant,MissingPermission,BlockedPrivateApi,SoonBlockedPrivateApi,DiscouragedPrivateApi")
public static AudioRecord createAudioRecord(int source, int sampleRate, int channelConfig, int channels, int channelMask, int encoding) {
// Vivo (and maybe some other third-party ROMs) modified `AudioRecord`'s constructor, requiring `Context`s from real App environment.
//