소스 검색

PendingIntent.FLAG_IMMUTABLEに変更

y.tomita 5 달 전
부모
커밋
9e6f51e22e
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      app/src/main/java/jp/co/ecosysnetwork/ccloca_app/service/DriveService.java

+ 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))