Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e65dbba0 authored by Ryan Lin's avatar Ryan Lin Committed by Android (Google) Code Review
Browse files

Merge "Apply big text style to the notification"

parents f8309b76 530a79ce
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -106,13 +106,16 @@ public class WindowMagnificationPromptController {

        final Notification.Builder notificationBuilder = new Notification.Builder(mContext,
                SystemNotificationChannels.ACCESSIBILITY_MAGNIFICATION);
        final String message = mContext.getString(R.string.window_magnification_prompt_content);

        notificationBuilder.setSmallIcon(R.drawable.ic_settings_24dp)
                .setContentTitle(mContext.getString(R.string.window_magnification_prompt_title))
                .setContentText(mContext.getString(R.string.window_magnification_prompt_content))
                .setContentText(message)
                .setLargeIcon(Icon.createWithResource(mContext,
                        R.drawable.ic_accessibility_magnification))
                .setTicker(mContext.getString(R.string.window_magnification_prompt_title))
                .setOnlyAlertOnce(true)
                .setStyle(new Notification.BigTextStyle().bigText(message))
                .setDeleteIntent(createPendingIntent(ACTION_DISMISS))
                .setContentIntent(createPendingIntent(ACTION_TURN_ON_IN_SETTINGS))
                .setActions(buildTurnOnAction(), buildDismissAction());