Commit 246f0a18 authored by Manas Verma's avatar Manas Verma Committed by Commit Bot

[Autofill Auth] Toggle should appear only for Android P+

Since only Android versions P and above are supported, settings page
toggle should not be visible if O or lower.

Bug: 949269
Change-Id: Idefda09cd2210843578abc58ae4a11b79b711eac
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2338726Reviewed-by: default avatarTommy Martino <tmartino@chromium.org>
Commit-Queue: Manas Verma <manasverma@google.com>
Cr-Commit-Position: refs/heads/master@{#795676}
parent 654e82a2
......@@ -177,6 +177,11 @@ public class AutofillPaymentMethodsFragment extends PreferenceFragmentCompat
}
private boolean isBiometricAvailable() {
// Only Android versions 9 and above are supported.
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.P) {
return false;
}
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
BiometricManager biometricManager =
getStyledContext().getSystemService(BiometricManager.class);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment