Show biometric-specific dialog when appropriate
1) We need to pass a "restriction" string from settings to the dialog, otherwise the biometric dialog could be shown in non-biometric flows 2) Updates ActionDisabledByAdminDialogHelper to pass the restrition to be taken into consideration when creating the controller 3) Sets an optional onClickListener on the positive button. Bug: 5788943 Test: atest ParentalControlsUtilsTest Change-Id: Iedff7fef50e186b2779f061f37d3080c910d2179
This commit is contained in:
@@ -37,7 +37,7 @@ public class ActionDisabledByAdminDialog extends Activity
|
||||
final RestrictedLockUtils.EnforcedAdmin enforcedAdmin =
|
||||
getAdminDetailsFromIntent(getIntent());
|
||||
final String restriction = getRestrictionFromIntent(getIntent());
|
||||
mDialogHelper = new ActionDisabledByAdminDialogHelper(this);
|
||||
mDialogHelper = new ActionDisabledByAdminDialogHelper(this, restriction);
|
||||
mDialogHelper.prepareDialogBuilder(restriction, enforcedAdmin)
|
||||
.setOnDismissListener(this)
|
||||
.show();
|
||||
|
Reference in New Issue
Block a user