Merge "Update intent for requesting parental consent" into sc-dev

This commit is contained in:
Kevin Chyn
2021-06-29 18:42:07 +00:00
committed by Android (Google) Code Review

View File

@@ -32,8 +32,10 @@ public class BiometricActionDisabledByAdminController extends BaseActionDisabled
// These MUST not change, as they are the stable API between here and device admin specified // These MUST not change, as they are the stable API between here and device admin specified
// by the component below. // by the component below.
private static final String ACTION_LEARN_MORE = "android.settings.LEARN_MORE"; private static final String ACTION_LEARN_MORE =
private static final String EXTRA_FROM_BIOMETRIC_SETUP = "from_biometric_setup"; "android.intent.action.MANAGE_RESTRICTED_SETTING";
private static final String EXTRA_SETTING_KEY = "extra_setting";
private static final String EXTRA_SETTING_VALUE = "biometric_disabled_by_admin_controller";
BiometricActionDisabledByAdminController( BiometricActionDisabledByAdminController(
DeviceAdminStringProvider stringProvider) { DeviceAdminStringProvider stringProvider) {
@@ -63,7 +65,7 @@ public class BiometricActionDisabledByAdminController extends BaseActionDisabled
Log.d(TAG, "Positive button clicked, component: " + enforcedAdmin.component); Log.d(TAG, "Positive button clicked, component: " + enforcedAdmin.component);
final Intent intent = new Intent(ACTION_LEARN_MORE) final Intent intent = new Intent(ACTION_LEARN_MORE)
.setComponent(enforcedAdmin.component) .setComponent(enforcedAdmin.component)
.putExtra(EXTRA_FROM_BIOMETRIC_SETUP, true) .putExtra(EXTRA_SETTING_KEY, EXTRA_SETTING_VALUE)
.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); .addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
context.startActivity(intent); context.startActivity(intent);
}; };