Revert "[AAPM] Add advanced protection dialog according to API f..."
Revert submission 30767017-aapm-dialog-api-feedback Reason for revert: Droidmonitor created revert due to b/384828570. Will be verifying through ABTD before submission. Reverted changes: /q/submissionid:30767017-aapm-dialog-api-feedback Change-Id: Ibf26aca2453f2007370974290f5c16d6b091341e
This commit is contained in:
committed by
Android (Google) Code Review
parent
e2248f1c4f
commit
2574343b43
@@ -109,9 +109,12 @@ public class ActionDisabledByAdminDialog extends Activity
|
||||
}
|
||||
if (enforcingAdmin.getAuthority() instanceof UnknownAuthority authority
|
||||
&& ADVANCED_PROTECTION_SYSTEM_ENTITY.equals(authority.getName())) {
|
||||
Intent apmSupportIntent = AdvancedProtectionManager
|
||||
.createSupportIntentForPolicyIdentifierOrRestriction(restriction,
|
||||
AdvancedProtectionManager.SUPPORT_DIALOG_TYPE_UNKNOWN);
|
||||
AdvancedProtectionManager apm = getSystemService(AdvancedProtectionManager.class);
|
||||
if (apm == null) {
|
||||
return;
|
||||
}
|
||||
Intent apmSupportIntent = apm.createSupportIntentForPolicyIdentifierOrRestriction(
|
||||
restriction, /* type */ null);
|
||||
startActivityAsUser(apmSupportIntent, UserHandle.of(userId));
|
||||
finish();
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user