Fix ChooserTarget app scoring
An initial sorting step before applying modifiers to the ChooserTarget scores provided by apps was backwards, causing subsequent target scores to be heavily penalized. Targets are then heavily influenced by the lowest score in the set relative to the targets from other apps. Bug 25013559 Change-Id: I39d5d7c601712fc6a19e694d5846d2c8d17a214f
This commit is contained in:
@@ -920,7 +920,7 @@ public class ChooserActivity extends ResolverActivity {
|
||||
@Override
|
||||
public int compare(ChooserTarget lhs, ChooserTarget rhs) {
|
||||
// Descending order
|
||||
return (int) Math.signum(lhs.getScore() - rhs.getScore());
|
||||
return (int) Math.signum(rhs.getScore() - lhs.getScore());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user