@@ -129,17 +129,21 @@ private PendingIntent getPendingIntent(Context context, IterableNotificationData
129
129
buttonIntent .putExtra (IterableConstants .ITERABLE_DATA_ACTION_IDENTIFIER , button .identifier );
130
130
buttonIntent .putExtra (IterableConstants .ACTION_IDENTIFIER , button .identifier );
131
131
132
+ int pendingIntentFlag = button .buttonType .equals (IterableNotificationData .Button .BUTTON_TYPE_TEXT_INPUT ) ?
133
+ PendingIntent .FLAG_UPDATE_CURRENT | PendingIntent .FLAG_MUTABLE :
134
+ PendingIntent .FLAG_UPDATE_CURRENT | PendingIntent .FLAG_IMMUTABLE ;
135
+
132
136
if (button .openApp ) {
133
137
IterableLogger .d (TAG , "Go through TrampolineActivity" );
134
138
buttonIntent .setClass (context , IterableTrampolineActivity .class );
135
139
buttonIntent .setFlags (Intent .FLAG_ACTIVITY_NEW_TASK | Intent .FLAG_ACTIVITY_CLEAR_TASK );
136
- int pendingIntentFlag = button . buttonType . equals ( IterableNotificationData . Button . BUTTON_TYPE_TEXT_INPUT ) ? PendingIntent . FLAG_UPDATE_CURRENT | PendingIntent . FLAG_MUTABLE : PendingIntent . FLAG_UPDATE_CURRENT | PendingIntent . FLAG_IMMUTABLE ;
140
+ // int pendingIntentFlag = pendingIntentFlag ;
137
141
pendingButtonIntent = PendingIntent .getActivity (context , buttonIntent .hashCode (),
138
142
buttonIntent , pendingIntentFlag );
139
143
} else {
140
144
IterableLogger .d (TAG , "Go through IterablePushActionReceiver" );
141
145
buttonIntent .setClass (context , IterablePushActionReceiver .class );
142
- int pendingIntentFlag = button . buttonType . equals ( IterableNotificationData . Button . BUTTON_TYPE_TEXT_INPUT ) ? PendingIntent . FLAG_UPDATE_CURRENT | PendingIntent . FLAG_MUTABLE : PendingIntent . FLAG_UPDATE_CURRENT | PendingIntent . FLAG_IMMUTABLE ;
146
+ // int pendingIntentFlag = pendingIntentFlag ;
143
147
pendingButtonIntent = PendingIntent .getBroadcast (context , buttonIntent .hashCode (),
144
148
buttonIntent , pendingIntentFlag );
145
149
}
0 commit comments