diff options
author | d34d <clark@cyngn.com> | 2015-12-29 11:51:21 -0800 |
---|---|---|
committer | Clark Scheff <clark@cyngn.com> | 2015-12-29 15:49:57 -0800 |
commit | 015130c6e3b773d16e9408d097e2420f3525bd8d (patch) | |
tree | 0daab46c167ae7c3a0e763b7be651d62c9c566c3 | |
parent | f1d64bf3372b4f5ac7fd38e6778a23b7cb2c400f (diff) | |
download | packages_apps_Settings-015130c6e3b773d16e9408d097e2420f3525bd8d.zip packages_apps_Settings-015130c6e3b773d16e9408d097e2420f3525bd8d.tar.gz packages_apps_Settings-015130c6e3b773d16e9408d097e2420f3525bd8d.tar.bz2 |
Fingerprint: Forward challenge extras
The forward port of custom pattern sizes introduced a bug that would
cause an NPE when trying to add a fingerprint for security. This patch
forwards the extras associated with the challenge that would have
normally been passed directly in to the ChooseLockPattern fragment.
Change-Id: I3ad994b2604ff45b573c011c3588afe8b35bfdd3
TICKET: CYNGNOS-1490
-rw-r--r-- | src/com/android/settings/ChooseLockPatternSize.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/com/android/settings/ChooseLockPatternSize.java b/src/com/android/settings/ChooseLockPatternSize.java index 814454d..7202839 100644 --- a/src/com/android/settings/ChooseLockPatternSize.java +++ b/src/com/android/settings/ChooseLockPatternSize.java @@ -79,6 +79,18 @@ public class ChooseLockPatternSize extends PreferenceActivity { intent.putExtra("confirm_credentials", false); intent.putExtra(LockPatternUtils.LOCKSCREEN_BIOMETRIC_WEAK_FALLBACK, isFallback); + + Intent originatingIntent = getActivity().getIntent(); + // Forward the challenge extras if available in originating intent. + if (originatingIntent.hasExtra(ChooseLockSettingsHelper.EXTRA_KEY_HAS_CHALLENGE)) { + intent.putExtra(ChooseLockSettingsHelper.EXTRA_KEY_HAS_CHALLENGE, + originatingIntent.getBooleanExtra( + ChooseLockSettingsHelper.EXTRA_KEY_HAS_CHALLENGE, false)); + + intent.putExtra(ChooseLockSettingsHelper.EXTRA_KEY_CHALLENGE, + originatingIntent.getLongExtra( + ChooseLockSettingsHelper.EXTRA_KEY_CHALLENGE, 0)); + } intent.addFlags(Intent.FLAG_ACTIVITY_FORWARD_RESULT); startActivity(intent); |