Merge "Add back the throwIfParentInstance checking in getAffiliationIds" into oc-dev

This commit is contained in:
TreeHugger Robot
2017-05-02 15:38:44 +00:00
committed by Android (Google) Code Review

View File

@@ -7636,6 +7636,7 @@ public class DevicePolicyManager {
* empty set if none have been set.
*/
public @NonNull Set<String> getAffiliationIds(@NonNull ComponentName admin) {
throwIfParentInstance("getAffiliationIds");
try {
return new ArraySet<>(mService.getAffiliationIds(admin));
} catch (RemoteException e) {