From ea7b5e3a8edef5892c44e08d1e4cfe00f07724f9 Mon Sep 17 00:00:00 2001 From: Xtr126 Date: Sun, 18 Feb 2024 12:10:49 +0530 Subject: [PATCH] feat: target Android 14 --- app/build.gradle | 2 +- app/src/main/AndroidManifest.xml | 5 ++++- app/src/main/java/xtr/keymapper/TouchPointer.java | 9 ++++++++- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 09a6f54c..41c5dcd6 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -9,7 +9,7 @@ android { defaultConfig { applicationId "xtr.keymapper" minSdk 28 - targetSdk 33 + targetSdk 34 versionCode 11 versionName '2.1.1' diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index eef1d669..9ded9406 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -4,9 +4,11 @@ + + @@ -49,7 +51,8 @@ + android:enabled="true" + android:foregroundServiceType="specialUse"/> = Build.VERSION_CODES.UPSIDE_DOWN_CAKE) { + startForeground(2, notification, FOREGROUND_SERVICE_TYPE_SPECIAL_USE); + } else { + startForeground(2, notification); + } if (cursorView == null) showCursor();