Rank ChooserTargets using appTarget#rank instead of shortcut#rank. AppTarget#rank contains the score passed from AppPredictionService.
Bug: 159889652 Test: atest CtsSharesheetTestCases:android.sharesheet.cts.CtsSharesheetDeviceTest Change-Id: I311233283db55d7da37c4d1332b60fc7ca6e3ce6
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user