Fixed notifications on Android to be able to span on multiple lines.

#rnx


#ROBOMERGE-SOURCE: CL 7224646 via CL 7224751
#ROBOMERGE-BOT: (v367-6836689)

[CL 7224760 by francois guimond in Main branch]
This commit is contained in:
francois guimond
2019-07-05 14:35:28 -04:00
parent 94993c9888
commit a75f2199c5

View File

@@ -55,7 +55,8 @@ public class LocalNotificationReceiver extends BroadcastReceiver
.setContentIntent(pendingNotificationIntent)
.setWhen(System.currentTimeMillis())
.setTicker(details) // note: will not show up on Lollipop up except for accessibility
.setContentTitle(title);
.setContentTitle(title)
.setStyle(new NotificationCompat.BigTextStyle().bigText(details));
if (android.os.Build.VERSION.SDK_INT >= 21)
{
builder.setContentText(details);