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

Unverified Commit ffd95963 authored by Timi Rautamäki's avatar Timi Rautamäki Committed by Michael Bestas
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 7b4d0121
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -184,6 +184,7 @@
            </LinearLayout>

            <LinearLayout
                android:id="@+id/layout_footer_learn_more"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="horizontal">
+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;
@@ -150,6 +151,10 @@ public class FingerprintEnrollIntroduction extends BiometricEnrollIntroduction {
                getNextButton().setEnabled(true);
            }));
        }

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

    @Override