Merge "Update notification to allow multiline text" into pi-dev

am: a2117ce057

Change-Id: Ib20d0731f001702a2918cfa880511e13ed5e3892
This commit is contained in:
Salvador Martinez
2018-04-03 16:33:39 -07:00
committed by android-build-merger

View File

@@ -229,10 +229,11 @@ public class PowerNotificationWarnings implements PowerUI.WarningsUI {
// Bump the notification when the bucket dropped.
.setWhen(mWarningTriggerTimeMs)
.setShowWhen(false)
.setContentTitle(title)
.setContentText(contentText)
.setContentTitle(title)
.setOnlyAlertOnce(true)
.setDeleteIntent(pendingBroadcast(ACTION_DISMISSED_WARNING))
.setStyle(new Notification.BigTextStyle().bigText(contentText))
.setVisibility(Notification.VISIBILITY_PUBLIC);
if (hasBatterySettings()) {
nb.setContentIntent(pendingBroadcast(ACTION_SHOW_BATTERY_SETTINGS));