From 48c945e9b5fd1f50f3f940f4839a169b944b96d3 Mon Sep 17 00:00:00 2001 From: Bonian Chen Date: Tue, 21 Dec 2021 14:08:58 +0800 Subject: [PATCH] [Settings] Expand the display area of PIN error message PIN error message when user operating on PIN lock got long text string. Which not fit into 2 lines of display area. This is a change to expand the display area to max. capacity but remain tightly wrap the text. Bug: 211176734 Test: local Change-Id: If175a53de4646d2479b15b10f6b59e4e0870d521 --- src/com/android/settings/IccLockSettings.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/com/android/settings/IccLockSettings.java b/src/com/android/settings/IccLockSettings.java index e89e84b9dfb..71eb0f20e30 100644 --- a/src/com/android/settings/IccLockSettings.java +++ b/src/com/android/settings/IccLockSettings.java @@ -587,6 +587,7 @@ public class IccLockSettings extends SettingsPreferenceFragment .inflate(com.android.internal.R.layout.transient_notification, null); final TextView tv = (TextView) v.findViewById(com.android.internal.R.id.message); tv.setText(errorMessage); + tv.setSingleLine(false); final WindowManager.LayoutParams params = new WindowManager.LayoutParams(); final Configuration config = v.getContext().getResources().getConfiguration();