Bug 1313363 - NotificationHandler: Use BigTextStyle instead of InboxStyle. r=grisha a=ritu, despite the CLOSED TREE
authorSebastian Kaspari <s.kaspari@gmail.com>
Tue, 01 Nov 2016 12:50:47 +0100
changeset 348785 b406bc45a3cd9a6dfb8d55917541e764d1362afd
parent 348784 fa0bf22d15e9cbb6c7acaf91f25d2a71062b0e3e
child 348786 b36718709777b50df48b800c7f05674cfa9e2701
push id6564
push userkwierso@gmail.com
push dateTue, 01 Nov 2016 16:26:21 +0000
treeherdermozilla-beta@b406bc45a3cd [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgrisha, ritu, despite
bugs1313363
milestone50.0
Bug 1313363 - NotificationHandler: Use BigTextStyle instead of InboxStyle. r=grisha a=ritu, despite the CLOSED TREE
mobile/android/base/java/org/mozilla/gecko/notifications/NotificationHandler.java
--- a/mobile/android/base/java/org/mozilla/gecko/notifications/NotificationHandler.java
+++ b/mobile/android/base/java/org/mozilla/gecko/notifications/NotificationHandler.java
@@ -60,19 +60,19 @@ public class NotificationHandler {
 
         final NotificationCompat.Builder builder = new NotificationCompat.Builder(mContext)
                 .setContentTitle(aAlertTitle)
                 .setContentText(aAlertText)
                 .setSmallIcon(R.drawable.ic_status_logo)
                 .setContentIntent(contentIntent)
                 .setDeleteIntent(deleteIntent)
                 .setAutoCancel(true)
-                .setStyle(new NotificationCompat.InboxStyle()
-                          .addLine(aAlertText)
-                          .setSummaryText(aHost));
+                .setStyle(new NotificationCompat.BigTextStyle()
+                        .bigText(aAlertText)
+                        .setSummaryText(aHost));
 
         // Fetch icon.
         if (!aImageUrl.isEmpty()) {
             final Bitmap image = BitmapUtils.decodeUrl(aImageUrl);
             builder.setLargeIcon(image);
         }
 
         builder.setWhen(System.currentTimeMillis());