diff --git a/packages/SystemUI/res/layout/auth_biometric_contents.xml b/packages/SystemUI/res/layout/auth_biometric_contents.xml index 58adb9146bd04..e1b294f2d757b 100644 --- a/packages/SystemUI/res/layout/auth_biometric_contents.xml +++ b/packages/SystemUI/res/layout/auth_biometric_contents.xml @@ -21,6 +21,9 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:gravity="@integer/biometric_dialog_text_gravity" + android:singleLine="true" + android:marqueeRepeatLimit="1" + android:ellipsize="marquee" style="@style/TextAppearance.AuthCredential.Title"/> limit) { + description.measure( + MeasureSpec.makeMeasureSpec(currWidth, MeasureSpec.EXACTLY), + MeasureSpec.makeMeasureSpec(limit - currHeight, MeasureSpec.EXACTLY)); + } + return description.getMeasuredHeight(); + } + @NonNull private AuthDialog.LayoutParams onMeasureInternalLandscape(int width, int height) { final WindowMetrics windowMetrics = mWindowManager.getMaximumWindowMetrics();