Loading src/amazon/ADMMessageHandler.java +4 −2 Changes for src/amazon/ADMMessageHandler.java: 4 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -25,6 +25,7 @@ import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.os.Bundle; import android.text.Html; import android.text.TextUtils; import android.util.Log; import android.app.Notification.Builder; Loading Loading @@ -133,7 +134,7 @@ public class ADMMessageHandler extends ADMMessageHandlerBase { // Extract the payload from the message Bundle extras = intent.getExtras(); if (extras != null) { if (extras != null && (extras.getString(PushPlugin.MESSAGE) != null)) { // if we are in the foreground, just surface the payload, else post // it to the statusbar if (PushPlugin.isInForeground()) { Loading Loading @@ -174,7 +175,8 @@ public class ADMMessageHandler extends ADMMessageHandlerBase { .setContentIntent(contentIntent); if (this.shouldShowMessageInNotification()) { notificationBuilder.setContentText(extras.getString(PushPlugin.MESSAGE)); String message = extras.getString(PushPlugin.MESSAGE); notificationBuilder.setContentText(Html.fromHtml(message).toString()); } else { notificationBuilder.setContentText(this.defaultMessageTextInNotification()); } Loading Loading
src/amazon/ADMMessageHandler.java +4 −2 Changes for src/amazon/ADMMessageHandler.java: 4 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -25,6 +25,7 @@ import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.os.Bundle; import android.text.Html; import android.text.TextUtils; import android.util.Log; import android.app.Notification.Builder; Loading Loading @@ -133,7 +134,7 @@ public class ADMMessageHandler extends ADMMessageHandlerBase { // Extract the payload from the message Bundle extras = intent.getExtras(); if (extras != null) { if (extras != null && (extras.getString(PushPlugin.MESSAGE) != null)) { // if we are in the foreground, just surface the payload, else post // it to the statusbar if (PushPlugin.isInForeground()) { Loading Loading @@ -174,7 +175,8 @@ public class ADMMessageHandler extends ADMMessageHandlerBase { .setContentIntent(contentIntent); if (this.shouldShowMessageInNotification()) { notificationBuilder.setContentText(extras.getString(PushPlugin.MESSAGE)); String message = extras.getString(PushPlugin.MESSAGE); notificationBuilder.setContentText(Html.fromHtml(message).toString()); } else { notificationBuilder.setContentText(this.defaultMessageTextInNotification()); } Loading