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
4792bc1d99
Bug: 234882948
Test: presubmit
Change-Id: I8d6f1689c3cff80421913d64c43e242744eccf36
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user