Merge "Rank results that match the prefix of the first word higher"

This commit is contained in:
TreeHugger Robot
2017-02-21 22:46:48 +00:00
committed by Android (Google) Code Review
5 changed files with 147 additions and 35 deletions

View File

@@ -211,8 +211,8 @@ public class InstalledAppResultLoader extends AsyncLoader<List<? extends SearchR
*/
private int getRank(int wordDiff) {
if (wordDiff < 6) {
return 3;
return 2;
}
return 4;
return 3;
}
}