Add back the throwIfParentInstance checking in getAffiliationIds

Fix: 37887947

Test: cts-tradefed run cts-dev --module DevicePolicyManager --test com.android.cts.devicepolicy.ParentProfileTest#testParentProfileApiDisabled

Change-Id: I05944c7a2447998d3ea948195fb25b09ab9735fc
This commit is contained in:
Tony Mak
2017-05-02 13:50:18 +01:00
parent 90074d1ec8
commit 62cf586159

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) {