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

Commit 4a8ce08c authored by Joshua Mccloskey's avatar Joshua Mccloskey
Browse files

Add scrollable text to biometric prompt

Test: Verified the marquee text scrolls if text is too large to display
on a single line.
Bug: 201045056

Change-Id: I7af434295fa90b9229e10a124b97c7f4588fb7c5
parent 27db3c0a
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -73,6 +73,9 @@
        android:accessibilityLiveRegion="polite"
        android:singleLine="true"
        android:ellipsize="marquee"
        android:marqueeRepeatLimit="marquee_forever"
        android:scrollHorizontally="true"
        android:fadingEdge="horizontal"
        android:textColor="@color/biometric_dialog_gray"/>

    <LinearLayout
+1 −0
Original line number Diff line number Diff line
@@ -636,6 +636,7 @@ public abstract class AuthBiometricView extends LinearLayout {
        mIndicatorView.setText(message);
        mIndicatorView.setTextColor(mTextColorError);
        mIndicatorView.setVisibility(View.VISIBLE);
        mIndicatorView.setSelected(true);
        mHandler.postDelayed(resetMessageRunnable, mInjector.getDelayAfterError());

        Utils.notifyAccessibilityContentChanged(mAccessibilityManager, this);