Merge "UidObserverController: Fix incorrect usage of binarySearch return value" into udc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
fbcc05a92a
@@ -557,7 +557,7 @@ public class UidObserverController {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return Arrays.binarySearch(mUids, uid) != -1;
|
return Arrays.binarySearch(mUids, uid) >= 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void addUid(int uid) {
|
void addUid(int uid) {
|
||||||
|
|||||||
Reference in New Issue
Block a user