OSDN Git Service

Fix ChooserTarget app scoring
authorAdam Powell <adamp@google.com>
Fri, 16 Oct 2015 17:47:32 +0000 (10:47 -0700)
committerAdam Powell <adamp@google.com>
Fri, 16 Oct 2015 17:58:08 +0000 (10:58 -0700)
commit77a533f5b2a1640f52fc2ccbcf8c74c9aed94d6e
tree6ef6542a790805757aa1d5f407f98e5146172766
parent9c76f61dea69e21eba3b89adbc2a00bcb522584e
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
core/java/com/android/internal/app/ChooserActivity.java