Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 48c945e9 authored by Bonian Chen's avatar Bonian Chen
Browse files

[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
parent 0bf1802b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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();