[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
This commit is contained in:
Bonian Chen
2021-12-21 14:08:58 +08:00
parent 0bf1802bb3
commit 48c945e9b5

View File

@@ -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();