• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

packages/apps/Settings


Commit MetaInfo

Revisãoe4e22653f54d9ed9522d6340e2059ff12d859cb0 (tree)
Hora2017-01-10 23:16:01
AutorChih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Mensagem de Log

Android 6.0.1 release 74
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEABECAAYFAlgczuIACgkQ6K0/gZqxDnim9wCfU69t/uqtK/g44Tolchk7psO9
Df0An3VmPR/vBg1+fDfzxAt+mPfXyfBr
=acAG
-----END PGP SIGNATURE-----

Merge tag 'android-6.0.1_r74' into marshmallow-x86

Android 6.0.1 release 74

Mudança Sumário

Diff

--- a/src/com/android/settings/fingerprint/FingerprintEnrollIntroduction.java
+++ b/src/com/android/settings/fingerprint/FingerprintEnrollIntroduction.java
@@ -20,6 +20,7 @@ import android.app.admin.DevicePolicyManager;
2020 import android.content.Intent;
2121 import android.os.Bundle;
2222 import android.os.UserHandle;
23+import android.provider.Settings.Global;
2324 import android.view.View;
2425
2526 import com.android.internal.logging.MetricsLogger;
@@ -40,7 +41,11 @@ public class FingerprintEnrollIntroduction extends FingerprintEnrollBase {
4041 setContentView(R.layout.fingerprint_enroll_introduction);
4142 setHeaderText(R.string.security_settings_fingerprint_enroll_introduction_title);
4243 findViewById(R.id.cancel_button).setOnClickListener(this);
43- findViewById(R.id.learn_more_button).setOnClickListener(this);
44+ final View learnMoreButton = findViewById(R.id.learn_more_button);
45+ learnMoreButton.setOnClickListener(this);
46+ if (Global.getInt(getContentResolver(), Global.DEVICE_PROVISIONED, 0) == 0) {
47+ learnMoreButton.setVisibility(View.GONE);
48+ }
4449 final int passwordQuality = new ChooseLockSettingsHelper(this).utils()
4550 .getActivePasswordQuality(UserHandle.myUserId());
4651 mHasPassword = passwordQuality != DevicePolicyManager.PASSWORD_QUALITY_UNSPECIFIED;
@@ -91,7 +96,9 @@ public class FingerprintEnrollIntroduction extends FingerprintEnrollBase {
9196 private void launchFingerprintHelp() {
9297 Intent helpIntent = HelpUtils.getHelpIntent(this,
9398 getString(R.string.help_url_fingerprint), getClass().getName());
94- startActivity(helpIntent);
99+ if (helpIntent != null) {
100+ startActivity(helpIntent);
101+ }
95102 }
96103
97104 @Override