From b03bde475a74b5858975e9c7901ada67cd415faa Mon Sep 17 00:00:00 2001 From: Boulay Mathias Date: Sat, 5 Nov 2022 13:16:07 +0100 Subject: [PATCH] refactor: Suppress NewAPi via annotation --- .../src/main/java/net/kdt/pojavlaunch/MinecraftGLSurface.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/MinecraftGLSurface.java b/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/MinecraftGLSurface.java index 45789536b..fda32e041 100644 --- a/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/MinecraftGLSurface.java +++ b/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/MinecraftGLSurface.java @@ -7,6 +7,7 @@ import static org.lwjgl.glfw.CallbackBridge.sendMouseButton; import static org.lwjgl.glfw.CallbackBridge.windowHeight; import static org.lwjgl.glfw.CallbackBridge.windowWidth; +import android.annotation.SuppressLint; import android.app.Activity; import android.content.Context; import android.graphics.SurfaceTexture; @@ -382,6 +383,7 @@ public class MinecraftGLSurface extends View { * The event for mouse/joystick movements * We don't do the gamepad right now. */ + @SuppressLint("NewApi") @Override public boolean dispatchGenericMotionEvent(MotionEvent event) { int mouseCursorIndex = -1;