summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/fingerprint/FingerprintEnrollIntroduction.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/settings/fingerprint/FingerprintEnrollIntroduction.java')
-rw-r--r--src/com/android/settings/fingerprint/FingerprintEnrollIntroduction.java11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/com/android/settings/fingerprint/FingerprintEnrollIntroduction.java b/src/com/android/settings/fingerprint/FingerprintEnrollIntroduction.java
index c3f2a5f..2e66d16 100644
--- a/src/com/android/settings/fingerprint/FingerprintEnrollIntroduction.java
+++ b/src/com/android/settings/fingerprint/FingerprintEnrollIntroduction.java
@@ -44,16 +44,9 @@ public class FingerprintEnrollIntroduction extends FingerprintEnrollBase {
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) {
+ if (TextUtils.isEmpty(getString(R.string.help_url_fingerprint)) ||
+ Global.getInt(getContentResolver(), Global.DEVICE_PROVISIONED, 0) == 0) {
learnMoreButton.setVisibility(View.GONE);
}