Merge "Rank ChooserTargets using appTarget#rank instead of shortcut#rank. AppTarget#rank contains the score passed from AppPredictionService." into rvc-dev

This commit is contained in:
TreeHugger Robot
2020-06-25 18:45:55 +00:00
committed by Android (Google) Code Review

View File

@@ -561,7 +561,7 @@ public class ChooserListAdapter extends ResolverListAdapter {
mChooserTargetScores.put(componentName, new HashMap<>());
}
mChooserTargetScores.get(componentName).put(shortcutInfo.getShortLabel().toString(),
shortcutInfo.getRank());
target.getRank());
}
mChooserTargetScores.keySet().forEach(key -> rankTargetsWithinComponent(key));
}