[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:
@@ -587,6 +587,7 @@ public class IccLockSettings extends SettingsPreferenceFragment
|
|||||||
.inflate(com.android.internal.R.layout.transient_notification, null);
|
.inflate(com.android.internal.R.layout.transient_notification, null);
|
||||||
final TextView tv = (TextView) v.findViewById(com.android.internal.R.id.message);
|
final TextView tv = (TextView) v.findViewById(com.android.internal.R.id.message);
|
||||||
tv.setText(errorMessage);
|
tv.setText(errorMessage);
|
||||||
|
tv.setSingleLine(false);
|
||||||
|
|
||||||
final WindowManager.LayoutParams params = new WindowManager.LayoutParams();
|
final WindowManager.LayoutParams params = new WindowManager.LayoutParams();
|
||||||
final Configuration config = v.getContext().getResources().getConfiguration();
|
final Configuration config = v.getContext().getResources().getConfiguration();
|
||||||
|
Reference in New Issue
Block a user