Merge "fix(high contrast text): Uses a new string resource for the settings action." into main

This commit is contained in:
Treehugger Robot
2025-02-04 16:24:08 -08:00
committed by Android (Google) Code Review
2 changed files with 5 additions and 4 deletions

View File

@@ -163,10 +163,11 @@ public class HighContrastTextMigrationReceiver extends BroadcastReceiver {
actionIntent.setAction(ACTION_OPEN_SETTINGS);
PendingIntent actionPendingIntent = PendingIntent.getBroadcast(context, 0,
actionIntent, PendingIntent.FLAG_IMMUTABLE);
final int actionResId =
R.string.accessibility_notification_high_contrast_text_action_open_settings;
Notification.Action settingsAction = new Notification.Action.Builder(
/* icon= */ null,
context.getString(R.string.accessibility_notification_high_contrast_text_action,
context.getString(R.string.settings_label)),
context.getString(actionResId, context.getString(R.string.settings_label)),
actionPendingIntent
).build();