From 92909cb2e1026fb6bf8a57cd36a8f1cad690f3ad Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Thu, 28 Nov 2024 19:05:08 +1100 Subject: [PATCH] Update MainActivity.java --- android/app/src/main/java/com/classicube/MainActivity.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/android/app/src/main/java/com/classicube/MainActivity.java b/android/app/src/main/java/com/classicube/MainActivity.java index 51cd508..81f00a6 100644 --- a/android/app/src/main/java/com/classicube/MainActivity.java +++ b/android/app/src/main/java/com/classicube/MainActivity.java @@ -432,7 +432,9 @@ void hookMotionListener(View view) { try { CCMotionListener listener = new CCMotionListener(this); view.setOnGenericMotionListener(listener); - } catch { + } catch (Exception ex) { + // Unsupported on android 12 + } catch (NoClassDefFoundError ex) { // Unsupported on android 12 } }