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

Commit c883f767 authored by Maurice Lam's avatar Maurice Lam Committed by Jessica Wagantall
Browse files

Remove learn more link if not provisioned. DO NOT MERGE

Remove the learn more link during setup wizard, because HelpUtils is
returning null for the intent while the device is not provisioned.

CYNGNOS-3303
Bug: 31246856
Change-Id: I4cf5c282f170188aef98a02d3b96af5e63ea7f39
(cherry picked from commit c94f2b93)
parent b08b1677
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -20,6 +20,7 @@ import android.app.admin.DevicePolicyManager;
import android.content.Intent;
import android.os.Bundle;
import android.os.UserHandle;
import android.provider.Settings.Global;
import android.text.TextUtils;
import android.view.View;

@@ -100,8 +101,10 @@ public class FingerprintEnrollIntroduction extends FingerprintEnrollBase {
    private void launchFingerprintHelp() {
        Intent helpIntent = HelpUtils.getHelpIntent(this,
                getString(R.string.help_url_fingerprint), getClass().getName());
        if (helpIntent != null) {
            startActivity(helpIntent);
        }
    }

    @Override
    protected int getMetricsCategory() {