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

Commit e16ca90d authored by Zhen Zhang's avatar Zhen Zhang
Browse files

Fix bug: when input size smaller than k, should return after sort.

Bug: 143076068
Test: Manually test with the change fixed reported bug.
Change-Id: I026abca19c7961318fd8968f7a4a4aed41420851
parent 0c69030d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -274,6 +274,7 @@ public class ResolverListController {
            // Fall into normal sort when number of ranked elements
            // needed is not smaller than size of input list.
            sort(inputList);
            return;
        }
        try {
            long beforeRank = System.currentTimeMillis();