Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 361ed635 authored by Yohei Yukawa's avatar Yohei Yukawa
Browse files

Remove an incorrect @UserIdInt from InputMethodUtils

This is a follow up CL to my previous CL [1], which incorrectly added

  @UserIdInt

annotation to "uid" parameter in

  InputMethodUtils#checkIfPackageBelongsToUid().

As it is a uid not userId, @UserIdInt has never been appropriate for
that parameter.

This CL must have no observable behavior change since @UserIdInt
doesn't change any runtime behavior.

 [1]: Ic33e94f2bdedaa2c573be0857727d901800e5bbf
      4792bc1d

Bug: 234882948
Test: presubmit
Change-Id: I8d6f1689c3cff80421913d64c43e242744eccf36
parent 10b858c3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -225,7 +225,7 @@ final class InputMethodUtils {
     * @return {@code true} if the package name belongs to the UID.
     */
    static boolean checkIfPackageBelongsToUid(AppOpsManager appOpsManager,
            @UserIdInt int uid, String packageName) {
            int uid, String packageName) {
        try {
            appOpsManager.checkPackage(uid, packageName);
            return true;