From b5cbafb01d26ed4f4df22ec837decc931244ddc4 Mon Sep 17 00:00:00 2001 From: AlexandreRouma Date: Wed, 16 Feb 2022 17:06:46 +0100 Subject: [PATCH] Android cleanup --- android/app/src/main/AndroidManifest.xml | 6 --- android/app/src/main/java/MainActivity.kt | 2 + .../app/src/main/res/xml/device_filter.xml | 53 ------------------- 3 files changed, 2 insertions(+), 59 deletions(-) delete mode 100644 android/app/src/main/res/xml/device_filter.xml diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 3ed585e1..d5163d42 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -19,12 +19,6 @@ - - diff --git a/android/app/src/main/java/MainActivity.kt b/android/app/src/main/java/MainActivity.kt index 9fbf5ec4..9f81dbde 100644 --- a/android/app/src/main/java/MainActivity.kt +++ b/android/app/src/main/java/MainActivity.kt @@ -124,7 +124,9 @@ class MainActivity : NativeActivity() { // We assume dispatchKeyEvent() of the NativeActivity is actually called for every // KeyEvent and not consumed by any View before it reaches here override fun dispatchKeyEvent(event: KeyEvent): Boolean { + Log.w(TAG, "Key Action"); if (event.action == KeyEvent.ACTION_DOWN) { + Log.w(TAG, "Key Pressed"); unicodeCharacterQueue.offer(event.getUnicodeChar(event.metaState)) } return super.dispatchKeyEvent(event) diff --git a/android/app/src/main/res/xml/device_filter.xml b/android/app/src/main/res/xml/device_filter.xml deleted file mode 100644 index 88165de3..00000000 --- a/android/app/src/main/res/xml/device_filter.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file