diff options
| author | Bruno Martins <bgcngm@gmail.com> | 2016-11-10 00:26:37 +0000 |
|---|---|---|
| committer | doc HD <doc.divxm@gmail.com> | 2017-08-05 14:34:08 +0300 |
| commit | cee94359c2ed7dc8ceb734afd6039cdb3ddd5dcd (patch) | |
| tree | 013f00ea0bd4d184cc62939bf5c36f1ed8a3c9aa | |
| parent | a623151ec4533f3dba50820b8852780579640a77 (diff) | |
Settings: Fix mismergemm6.0
* This was wrongly added during merge of tag 'android-6.0.1_r74'
Change-Id: I43f10016b69b4680da01be77ecb5fbb7e84a7429
| -rw-r--r-- | src/com/android/settings/fingerprint/FingerprintEnrollIntroduction.java | 11 |
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 c3f2a5fb725..2e66d16e2af 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); } |
