@@ -43,7 +43,6 @@ public class CloudinaryService extends ListenerService {
4343 private Notification .Builder builder ;
4444 private Handler backgroundThreadHandler ;
4545
46- @ SuppressLint ("UnspecifiedImmutableFlag" )
4746 @ Override
4847 public void onCreate () {
4948 super .onCreate ();
@@ -53,7 +52,7 @@ public void onCreate() {
5352 .setSmallIcon (R .drawable .ic_launcher )
5453 .setContentIntent (PendingIntent .getActivity (this , 999 ,
5554 new Intent (this , MainActivity .class ).addFlags (Intent .FLAG_ACTIVITY_REORDER_TO_FRONT ).setAction (ACTION_STATE_IN_PROGRESS ),
56- 0 ))
55+ PendingIntent . FLAG_IMMUTABLE ))
5756 .setOnlyAlertOnce (true )
5857 .setOngoing (true );
5958
@@ -72,15 +71,15 @@ public IBinder onBind(Intent intent) {
7271 return null ;
7372 }
7473
75- @ SuppressLint ( "UnspecifiedImmutableFlag" )
74+
7675 private Notification .Builder getBuilder (String requestId , Resource .UploadStatus status ) {
7776 Notification .Builder builder = new Notification .Builder (this )
7877 .setSmallIcon (R .drawable .ic_launcher )
7978 .setAutoCancel (true )
8079 .setContentIntent (PendingIntent .getActivity (this , 1234 ,
8180 new Intent (this , MainActivity .class )
8281 .setAction (actionFromStatus (status ))
83- , 0 ))
82+ , PendingIntent . FLAG_IMMUTABLE ))
8483 .setLargeIcon (getBitmap (requestId ));
8584
8685 if (Build .VERSION .SDK_INT >= Build .VERSION_CODES .O ) {
0 commit comments