Skip to content

Commit

Permalink
FIX: Use updated version of Hack.mirrorStaticMethod() to avoid troubl…
Browse files Browse the repository at this point in the history
…es caused by R8.
  • Loading branch information
oasisfeng committed Jul 22, 2019
1 parent 7cf4932 commit 07a6e31
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion shared/src/main/java/com/oasisfeng/island/util/Hacks.java
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,9 @@ interface OpEntry extends Hack.Mirror {
void setMode(int code, int uid, String packageName, int mode);

/** Retrieve the default mode for the operation. */
static int opToDefaultMode(final int op) { return Hack.mirrorStaticMethod("opToDefaultMode", -1, op); }
static int opToDefaultMode(final int op) {
return Hack.mirrorStaticMethod(AppOpsManager.class, "opToDefaultMode", -1, op);
}
}

public interface UserManagerHack extends Hack.Mirror<UserManager> {
Expand Down

0 comments on commit 07a6e31

Please sign in to comment.