ResolverComparator transitivity am: 2366ff12a2

am: e698d8bfea

Change-Id: I25598afdb60fb24c2e28113f24826c660d5d19c3
This commit is contained in:
Adam Powell
2016-09-23 20:43:24 +00:00
committed by android-build-merger

View File

@@ -157,7 +157,10 @@ class ResolverComparator implements Comparator<ResolvedComponentInfo> {
// We want to put the one targeted to another user at the end of the dialog.
if (lhs.targetUserId != UserHandle.USER_CURRENT) {
return 1;
return rhs.targetUserId != UserHandle.USER_CURRENT ? 0 : 1;
}
if (rhs.targetUserId != UserHandle.USER_CURRENT) {
return -1;
}
if (mHttp) {