Browse Source

PendingIntent.FLAG_IMMUTABLEに変更

y.tomita 5 months ago
parent
commit
9e6f51e22e

+ 2 - 1
app/src/main/java/jp/co/ecosysnetwork/ccloca_app/service/DriveService.java

@@ -260,7 +260,8 @@ public class DriveService extends Service {
         };
 
         // 通知インテントの作成
-        PendingIntent openIntent = PendingIntent.getActivity(this, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT);
+//        PendingIntent openIntent = PendingIntent.getActivity(this, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT);
+        PendingIntent openIntent = PendingIntent.getActivity(this, 0, intent, PendingIntent.FLAG_IMMUTABLE);
         Notification notification = new NotificationCompat.Builder(this, CHANNEL_ID)
                 .setSmallIcon(R.drawable.ic_launcher_foreground)
                 .setContentTitle(MyApplication.getInstance().getString(R.string.driveNotifyName2))