Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

android: Suppress lint in InsetsHelper

Charles Lombardob17d58b52304
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/InsetsHelper.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/InsetsHelper.kt
index 2eae77a1dd..37f08ac26e 100644
--- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/InsetsHelper.kt
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/InsetsHelper.kt
@@ -1,5 +1,6 @@
package org.yuzu.yuzu_emu.utils
+import android.annotation.SuppressLint
import android.content.Context
import android.view.ViewGroup.MarginLayoutParams
import androidx.core.graphics.Insets
@@ -17,6 +18,7 @@ object InsetsHelper {
appBarLayout.layoutParams = mlpAppBar
}
+ @SuppressLint("DiscouragedApi")
fun getSystemGestureType(context: Context): Int {
val resources = context.resources
val resourceId =