OSDN Git Service

Restrict ChooserTargets provided by a single service
authorAdam Powell <adamp@google.com>
Thu, 4 Feb 2016 00:01:09 +0000 (16:01 -0800)
committerAdam Powell <adamp@google.com>
Thu, 4 Feb 2016 18:40:41 +0000 (10:40 -0800)
commitbba0030a8529fd904056cbb7cfbbe3afbc1c8a95
treec5233fae98de4eafa22e7c002df324ecf027265d
parent47148a798730e9705e1a3579ea54a833d9fec449
Restrict ChooserTargets provided by a single service

Only allow one row's worth of targets from any one
ChooserTargetService and lower the weight for app recency in resolver
sorting. Along with a previous change to only consider the past 1 week
of app activity, this is to help improve the quality of direct share
targets shown.

Bug 26562857

Change-Id: I0f9a8ca8ccfb655261421e29fef7909cadd318f1
core/java/com/android/internal/app/ChooserActivity.java
core/java/com/android/internal/app/ResolverComparator.java