changeset 503:cbdb219e9ff5

updates for android10+
author Carl Byington <carl@five-ten-sg.com>
date Wed, 08 Jun 2022 09:00:34 -0700
parents 7e53f29f8b5a
children 53ae310a96f8
files app/src/main/AndroidManifest.xml app/src/main/java/com/five_ten_sg/connectbot/service/ConnectionNotifier.java
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/app/src/main/AndroidManifest.xml	Tue Jun 07 17:24:18 2022 -0700
+++ b/app/src/main/AndroidManifest.xml	Wed Jun 08 09:00:34 2022 -0700
@@ -20,6 +20,9 @@
     android:versionName="1.9.4-4"
     android:versionCode="1944"
     android:installLocation="auto">
+   <queries>
+        <package android:name="com.five_ten_sg.connectbot.monitor" />
+    </queries>
 
     <!--  permissions must match HostListActivity.java -->
     <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
--- a/app/src/main/java/com/five_ten_sg/connectbot/service/ConnectionNotifier.java	Tue Jun 07 17:24:18 2022 -0700
+++ b/app/src/main/java/com/five_ten_sg/connectbot/service/ConnectionNotifier.java	Wed Jun 08 09:00:34 2022 -0700
@@ -95,7 +95,7 @@
     protected Notification newRunningNotification(Context context) {
         Resources res = context.getResources();
         Intent notificationIntent = new Intent(context, ConsoleActivity.class);
-        PendingIntent contentIntent = PendingIntent.getActivity(context, ONLINE_NOTIFICATION, notificationIntent, 0);
+        PendingIntent contentIntent = PendingIntent.getActivity(context, ONLINE_NOTIFICATION, notificationIntent, PendingIntent.FLAG_IMMUTABLE);
 
         Notification.Builder nb;
         if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {