Skip to content

Commit

Permalink
Fix ShadowAppOpsManager.toOpEntry() compilation.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 237346683
  • Loading branch information
xian authored and copybara-robolectric committed Mar 8, 2019
1 parent 9fcf42b commit 37d9948
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,12 @@ private static OpEntry toOpEntry(Integer op) {
ClassParameter.from(int.class, DURATION),
ClassParameter.from(int.class, PROXY_UID),
ClassParameter.from(String.class, PROXY_PACKAGE));
} else {
return ReflectionHelpers.callConstructor(
OpEntry.class,
ClassParameter.from(int.class, op),
ClassParameter.from(int.class, AppOpsManager.MODE_ALLOWED));
}

return new OpEntry(op, AppOpsManager.MODE_ALLOWED);
}

private static String getInternalKey(int uid, String packageName) {
Expand Down

0 comments on commit 37d9948

Please sign in to comment.