Update confirming credential flow for biometric settings

The combined biometrics settings has been integrating face and
fingerprint authentication together, so the confirming credential flow
has to be invoked before entering biometrics settings page.

Bug: 183449119
Test: manual
Change-Id: I3c0d059241cb10a254868c2e388c4d3b20305b10
This commit is contained in:
Mill Chen
2021-04-22 11:21:44 +08:00
parent 7edebeef7e
commit 8843157b01
4 changed files with 226 additions and 16 deletions

View File

@@ -122,6 +122,9 @@ public abstract class BiometricStatusPreferenceController extends BasePreference
final String clazz = hasEnrolledBiometrics() ? getSettingsClassName()
: getEnrollClassName();
intent.setClassName(SETTINGS_PACKAGE_NAME, clazz);
if (!preference.getExtras().isEmpty()) {
intent.putExtras(preference.getExtras());
}
intent.putExtra(Intent.EXTRA_USER_ID, userId);
intent.putExtra(EXTRA_FROM_SETTINGS_SUMMARY, true);
context.startActivity(intent);