diff app/src/main/java/com/five_ten_sg/connectbot/service/ConnectionNotifier.java @ 503:cbdb219e9ff5

updates for android10+
author Carl Byington <carl@five-ten-sg.com>
date Wed, 08 Jun 2022 09:00:34 -0700
parents 7545103ec815
children
line wrap: on
line diff
--- 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) {