Skip to content

Commit 03f6382

Browse files
authored
Merge pull request #351 from Backendless/oleg.vyalyh/17881/api_26_dependency
Oleg.vyalyh/17881/api 26 dependency
2 parents bb0b673 + 2724b48 commit 03f6382

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/com/backendless/push/BackendlessFCMService.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ private void handleMessage( final Context context, Intent intent )
107107
androidPushTemplate.setName( BackendlessFCMService.IMMEDIATE_MESSAGE );
108108
}
109109

110-
Notification notification = PushTemplateHelper.convertFromTemplate( context, androidPushTemplate, intent.getExtras().deepCopy(), notificationId );
110+
Notification notification = PushTemplateHelper.convertFromTemplate( context, androidPushTemplate, intent.getExtras(), notificationId );
111111
PushTemplateHelper.showNotification( context, notification, androidPushTemplate.getName(), notificationId );
112112
return;
113113
}
@@ -121,8 +121,7 @@ private void handleMessage( final Context context, Intent intent )
121121
if( androidPushTemplate.getContentAvailable() != null && androidPushTemplate.getContentAvailable() == 1 )
122122
return;
123123

124-
Notification notification = PushTemplateHelper.convertFromTemplate( context, androidPushTemplate, intent.getExtras().deepCopy(), notificationId );
125-
intent.getExtras().deepCopy();
124+
Notification notification = PushTemplateHelper.convertFromTemplate( context, androidPushTemplate, intent.getExtras(), notificationId );
126125
PushTemplateHelper.showNotification( context, notification, androidPushTemplate.getName(), notificationId );
127126
}
128127
return;

src/com/backendless/push/PushTemplateHelper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ else if( messageText.length() > 35 )
236236
.setContentText( messageText );
237237

238238
Intent notificationIntent = appContext.getPackageManager().getLaunchIntentForPackage( appContext.getPackageName() );
239-
notificationIntent.putExtras( newBundle.deepCopy() );
239+
notificationIntent.putExtras( newBundle );
240240
notificationIntent.setFlags( Intent.FLAG_ACTIVITY_NEW_TASK );
241241

242242
PendingIntent contentIntent = PendingIntent.getActivity( appContext, notificationId * 3, notificationIntent, 0 );
@@ -275,7 +275,7 @@ static private List<NotificationCompat.Action> createActions( final Context appC
275275
{
276276
Intent actionIntent = new Intent( a.getTitle() );
277277
actionIntent.setClassName( appContext, a.getId() );
278-
actionIntent.putExtras( bundle.deepCopy() );
278+
actionIntent.putExtras( bundle );
279279
actionIntent.setFlags( Intent.FLAG_ACTIVITY_NEW_TASK );
280280

281281
// user should use messageId and tag(templateName) to cancel notification.

0 commit comments

Comments
 (0)