From 436cc15dbafa266c3431db27caafc5b848b98a57 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 17 Jul 2022 14:48:08 +0200 Subject: [PATCH] Android version fixed for API 31 --- hyperroid/app/src/main/AndroidManifest.xml | 4 ++-- .../java/com/roguetemple/hyperroid/ForegroundService.java | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/hyperroid/app/src/main/AndroidManifest.xml b/hyperroid/app/src/main/AndroidManifest.xml index 5c35c69b..eeee39cd 100644 --- a/hyperroid/app/src/main/AndroidManifest.xml +++ b/hyperroid/app/src/main/AndroidManifest.xml @@ -1,7 +1,7 @@ @@ -13,7 +13,7 @@ android:windowSoftInputMode="adjustResize" android:configChanges="orientation|keyboardHidden|screenSize" android:name=".HyperRogue" - android:launchMode="singleTask" android:exported="false"> + android:launchMode="singleTask" android:exported="true"> diff --git a/hyperroid/app/src/main/java/com/roguetemple/hyperroid/ForegroundService.java b/hyperroid/app/src/main/java/com/roguetemple/hyperroid/ForegroundService.java index 4bd3beee..148c7322 100644 --- a/hyperroid/app/src/main/java/com/roguetemple/hyperroid/ForegroundService.java +++ b/hyperroid/app/src/main/java/com/roguetemple/hyperroid/ForegroundService.java @@ -50,7 +50,8 @@ public class ForegroundService extends Service { | Intent.FLAG_ACTIVITY_CLEAR_TASK); PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, - notificationIntent, 0); + notificationIntent, PendingIntent.FLAG_IMMUTABLE + ); Notification notification = new NotificationCompat.Builder(this, getChannelId()) .setContentTitle("HyperRogue")