Merge "Adding null check to prevent NPE" into tm-dev
This commit is contained in:
@@ -261,8 +261,10 @@ public class KeyguardManager {
|
|||||||
CharSequence title, CharSequence description, int userId,
|
CharSequence title, CharSequence description, int userId,
|
||||||
boolean disallowBiometricsIfPolicyExists) {
|
boolean disallowBiometricsIfPolicyExists) {
|
||||||
Intent intent = this.createConfirmDeviceCredentialIntent(title, description, userId);
|
Intent intent = this.createConfirmDeviceCredentialIntent(title, description, userId);
|
||||||
|
if (intent != null) {
|
||||||
intent.putExtra(EXTRA_DISALLOW_BIOMETRICS_IF_POLICY_EXISTS,
|
intent.putExtra(EXTRA_DISALLOW_BIOMETRICS_IF_POLICY_EXISTS,
|
||||||
disallowBiometricsIfPolicyExists);
|
disallowBiometricsIfPolicyExists);
|
||||||
|
}
|
||||||
return intent;
|
return intent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user