fix(high contrast text): Uses a new string resource for the settings action.
The old string has all non-English translations without format placeholders, which will fail to build the string on those languages until translations are added. Bug: 384791485 Flag: com.android.graphics.hwui.flags.high_contrast_text_small_text_rect Change-Id: I4565610908d463c05576d5c5d0b083f76802cc9e
This commit is contained in:
@@ -159,10 +159,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();
|
||||
|
||||
|
Reference in New Issue
Block a user