summaryrefslogtreecommitdiff
path: root/src/android
diff options
context:
space:
mode:
authorGravatar Charles Lombardo2023-03-22 04:30:09 -0400
committerGravatar bunnei2023-06-03 00:05:45 -0700
commit8a34e58ad644c6ddf012b85c5f73fb009b4ba593 (patch)
tree1b796fc3e3f7b70f3776c9d4f13ee42fae6cf9da /src/android
parentandroid: Add data extraction rules (diff)
downloadyuzu-8a34e58ad644c6ddf012b85c5f73fb009b4ba593.tar.gz
yuzu-8a34e58ad644c6ddf012b85c5f73fb009b4ba593.tar.xz
yuzu-8a34e58ad644c6ddf012b85c5f73fb009b4ba593.zip
android: Suppress lint in InsetsHelper
Diffstat (limited to 'src/android')
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/InsetsHelper.kt2
1 files changed, 2 insertions, 0 deletions
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 2eae77a1d..37f08ac26 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 @@
1package org.yuzu.yuzu_emu.utils 1package org.yuzu.yuzu_emu.utils
2 2
3import android.annotation.SuppressLint
3import android.content.Context 4import android.content.Context
4import android.view.ViewGroup.MarginLayoutParams 5import android.view.ViewGroup.MarginLayoutParams
5import androidx.core.graphics.Insets 6import androidx.core.graphics.Insets
@@ -17,6 +18,7 @@ object InsetsHelper {
17 appBarLayout.layoutParams = mlpAppBar 18 appBarLayout.layoutParams = mlpAppBar
18 } 19 }
19 20
21 @SuppressLint("DiscouragedApi")
20 fun getSystemGestureType(context: Context): Int { 22 fun getSystemGestureType(context: Context): Int {
21 val resources = context.resources 23 val resources = context.resources
22 val resourceId = 24 val resourceId =