diff options
| author | 2023-03-22 04:30:09 -0400 | |
|---|---|---|
| committer | 2023-06-03 00:05:45 -0700 | |
| commit | 8a34e58ad644c6ddf012b85c5f73fb009b4ba593 (patch) | |
| tree | 1b796fc3e3f7b70f3776c9d4f13ee42fae6cf9da /src/android | |
| parent | android: Add data extraction rules (diff) | |
| download | yuzu-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.kt | 2 |
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 @@ | |||
| 1 | package org.yuzu.yuzu_emu.utils | 1 | package org.yuzu.yuzu_emu.utils |
| 2 | 2 | ||
| 3 | import android.annotation.SuppressLint | ||
| 3 | import android.content.Context | 4 | import android.content.Context |
| 4 | import android.view.ViewGroup.MarginLayoutParams | 5 | import android.view.ViewGroup.MarginLayoutParams |
| 5 | import androidx.core.graphics.Insets | 6 | import 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 = |