am b3e88b6e
: am 647f9752
: Merge "Don\'t show RedactionInterstitial when changing password" into lmp-mr1-dev
* commit 'b3e88b6e209992b5ce8dabfb95bb5dfb6aa79425': Don't show RedactionInterstitial when changing password
This commit is contained in:
@@ -425,6 +425,7 @@ public class ChooseLockPassword extends SettingsActivity {
|
||||
if (mFirstPin.equals(pin)) {
|
||||
final boolean isFallback = getActivity().getIntent().getBooleanExtra(
|
||||
LockPatternUtils.LOCKSCREEN_BIOMETRIC_WEAK_FALLBACK, false);
|
||||
boolean wasSecureBefore = mLockPatternUtils.isSecure();
|
||||
mLockPatternUtils.clearLock(isFallback);
|
||||
final boolean required = getActivity().getIntent().getBooleanExtra(
|
||||
EncryptionInterstitial.EXTRA_REQUIRE_PASSWORD, true);
|
||||
@@ -433,7 +434,9 @@ public class ChooseLockPassword extends SettingsActivity {
|
||||
getActivity().setResult(RESULT_FINISHED);
|
||||
getActivity().finish();
|
||||
mDone = true;
|
||||
startActivity(RedactionInterstitial.createStartIntent(getActivity()));
|
||||
if (!wasSecureBefore) {
|
||||
startActivity(RedactionInterstitial.createStartIntent(getActivity()));
|
||||
}
|
||||
} else {
|
||||
CharSequence tmp = mPasswordEntry.getText();
|
||||
if (tmp != null) {
|
||||
|
@@ -540,6 +540,8 @@ public class ChooseLockPattern extends SettingsActivity {
|
||||
final boolean isFallback = getActivity().getIntent()
|
||||
.getBooleanExtra(LockPatternUtils.LOCKSCREEN_BIOMETRIC_WEAK_FALLBACK, false);
|
||||
|
||||
boolean wasSecureBefore = utils.isSecure();
|
||||
|
||||
final boolean required = getActivity().getIntent().getBooleanExtra(
|
||||
EncryptionInterstitial.EXTRA_REQUIRE_PASSWORD, true);
|
||||
utils.setCredentialRequiredToDecrypt(required);
|
||||
@@ -553,7 +555,9 @@ public class ChooseLockPattern extends SettingsActivity {
|
||||
getActivity().setResult(RESULT_FINISHED);
|
||||
getActivity().finish();
|
||||
mDone = true;
|
||||
startActivity(RedactionInterstitial.createStartIntent(getActivity()));
|
||||
if (!wasSecureBefore) {
|
||||
startActivity(RedactionInterstitial.createStartIntent(getActivity()));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user