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

Commit a35db7c7 authored by Predrag Stanojevic's avatar Predrag Stanojevic Committed by Joe Bolinger
Browse files

Hide link icon if text is empty

A link icon is shown without explaining text or a link.
The reason is that the getFooterLearnMore text is empty.
We solve this by hiding the link icon if footer text is
empty on first fingerprint enrollment screen.

Bug: 266530752
Test: Manual
Flag: EXEMPT bugfix
(cherry picked from https://partner-android-review.googlesource.com/q/commit:75334e58aee193379788530e702ec60ab8f8127f)
Merged-In: I35f421e3cb4cdeee5a420e2ddf0fae2520cbd4ba
Change-Id: I35f421e3cb4cdeee5a420e2ddf0fae2520cbd4ba
parent 62754873
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -28,6 +28,7 @@ import android.hardware.fingerprint.FingerprintSensorPropertiesInternal;
import android.os.Bundle;
import android.text.Html;
import android.text.method.LinkMovementMethod;
import android.text.TextUtils;
import android.util.Log;
import android.view.View;
import android.widget.ImageView;
@@ -105,6 +106,10 @@ public class FingerprintEnrollIntroduction extends BiometricEnrollIntroduction {
        iconInfo.getDrawable().setColorFilter(getIconColorFilter());
        iconShield.getDrawable().setColorFilter(getIconColorFilter());
        iconLink.getDrawable().setColorFilter(getIconColorFilter());
        if (!WizardManagerHelper.isDeviceProvisioned(getApplicationContext()) ||
            TextUtils.isEmpty(getString(getFooterLearnMore()))) {
            iconLink.setVisibility(View.GONE);
        }

        final TextView footerMessage2 = findViewById(R.id.footer_message_2);
        final TextView footerMessage3 = findViewById(R.id.footer_message_3);