Skip to content

Commit

Permalink
Fix userId get
Browse files Browse the repository at this point in the history
  • Loading branch information
Nep-Timeline committed Sep 11, 2024
1 parent c26298e commit 878474c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ protected void beforeMethod(MethodHookParam param) {
}
else {
settings = XposedHelpers.getObjectField(param.thisObject, "mSettings");
userId = (settings == null) ? ActivityManagerService.getCurrentOrTargetUserId() : (int) XposedHelpers.callMethod(settings, "getUserId");
userId = (settings == null) ? ActivityManagerService.getCurrentOrTargetUserId() : XposedHelpers.getIntField(settings, "mCurrentUserId");
}

synchronized (InputMethodData.class) {
Expand Down

0 comments on commit 878474c

Please sign in to comment.