Skip to content

Commit 3f1fc99

Browse files
committed
Suppress false positive RestrictedApi lint warning on dispatchKeyEvent
1 parent 50f0099 commit 3f1fc99

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

app/src/main/kotlin/com/nendo/argosy/MainActivity.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.nendo.argosy
22

3+
import android.annotation.SuppressLint
34
import android.os.Bundle
45
import android.view.KeyEvent
56
import android.view.WindowManager
@@ -43,6 +44,7 @@ class MainActivity : ComponentActivity() {
4344
}
4445
}
4546

47+
@SuppressLint("RestrictedApi")
4648
override fun dispatchKeyEvent(event: KeyEvent?): Boolean {
4749
if (event != null && gamepadInputHandler.handleKeyEvent(event)) {
4850
return true

0 commit comments

Comments
 (0)