Only launch fingerprint settings after enrollment if it's from the summary controller
Fixes: 133822544 Test: No more multiple instances of fingerprint settings after enrolling from within the settings page Test: adb shell am start -a android.settings.BIOMETRIC_ENROLL does not send the user to fingerprint settings after completing enrollment Change-Id: I003dc142b01ed6ffae83299ab4b69f4896eb93e3
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
package com.android.settings.biometrics;
|
||||
|
||||
import static com.android.settings.Utils.SETTINGS_PACKAGE_NAME;
|
||||
import static com.android.settings.biometrics.BiometricEnrollBase.EXTRA_FROM_SETTINGS_SUMMARY;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
@@ -118,6 +119,7 @@ public abstract class BiometricStatusPreferenceController extends BasePreference
|
||||
Intent intent = new Intent();
|
||||
intent.setClassName(SETTINGS_PACKAGE_NAME, clazz);
|
||||
intent.putExtra(Intent.EXTRA_USER_ID, userId);
|
||||
intent.putExtra(EXTRA_FROM_SETTINGS_SUMMARY, true);
|
||||
context.startActivity(intent);
|
||||
return true;
|
||||
});
|
||||
|
Reference in New Issue
Block a user