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

Commit 50638c17 authored by Timi Rautamäki's avatar Timi Rautamäki Committed by Paul Keith
Browse files

fingerprint: hide link icon when there's no link

Test: verify fingerprint setup doesn't have link icon without a link.
Change-Id: I040500615815ffe9256089a9bc11b07da783fa79
parent cc4ca99f
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -166,6 +166,7 @@
            </LinearLayout>

            <LinearLayout
                android:id="@+id/layout_footer_learn_more"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="horizontal">
@@ -180,6 +181,7 @@
                    android:layout_width="16dp"
                    android:layout_height="wrap_content"/>
                <TextView
                    android:id="@+id/footer_message_learn_more"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    style="@style/BiometricEnrollIntroMessage"
+6 −0
Original line number Diff line number Diff line
@@ -24,6 +24,7 @@ import android.hardware.biometrics.BiometricAuthenticator;
import android.hardware.fingerprint.FingerprintManager;
import android.hardware.fingerprint.FingerprintSensorPropertiesInternal;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.Log;
import android.view.View;
import android.widget.ImageView;
@@ -82,6 +83,7 @@ public class FingerprintEnrollIntroduction extends BiometricEnrollIntroduction {
        final TextView footerMessage3 = findViewById(R.id.footer_message_3);
        final TextView footerMessage4 = findViewById(R.id.footer_message_4);
        final TextView footerMessage5 = findViewById(R.id.footer_message_5);
        final TextView footerMessageLearnMore = findViewById(R.id.footer_message_learn_more);
        footerMessage2.setText(getFooterMessage2());
        footerMessage3.setText(getFooterMessage3());
        footerMessage4.setText(getFooterMessage4());
@@ -91,6 +93,10 @@ public class FingerprintEnrollIntroduction extends BiometricEnrollIntroduction {
        final TextView footerTitle2 = findViewById(R.id.footer_title_2);
        footerTitle1.setText(getFooterTitle1());
        footerTitle2.setText(getFooterTitle2());

        if (TextUtils.isEmpty(footerMessageLearnMore.getText())) {
            findViewById(R.id.layout_footer_learn_more).setVisibility(View.GONE);
        }
    }

    @Override