import android.content.Intent;
import android.os.Bundle;
import android.os.UserHandle;
+import android.text.TextUtils;
+ import android.provider.Settings.Global;
import android.view.View;
import com.android.internal.logging.MetricsLogger;
setContentView(R.layout.fingerprint_enroll_introduction);
setHeaderText(R.string.security_settings_fingerprint_enroll_introduction_title);
findViewById(R.id.cancel_button).setOnClickListener(this);
+
+ final View learnMoreButton = findViewById(R.id.learn_more_button);
+ // If help url is not overlaid, remove the button.
+ if (TextUtils.isEmpty(getString(R.string.help_url_fingerprint))) {
+ learnMoreButton.setVisibility(View.GONE);
+ } else {
+ learnMoreButton.setOnClickListener(this);
+ }
+
+ final View learnMoreButton = findViewById(R.id.learn_more_button);
+ learnMoreButton.setOnClickListener(this);
+ if (Global.getInt(getContentResolver(), Global.DEVICE_PROVISIONED, 0) == 0) {
+ learnMoreButton.setVisibility(View.GONE);
+ }
++
final int passwordQuality = new ChooseLockSettingsHelper(this).utils()
.getActivePasswordQuality(UserHandle.myUserId());
mHasPassword = passwordQuality != DevicePolicyManager.PASSWORD_QUALITY_UNSPECIFIED;