OSDN Git Service

Sort and limit ChooserActivity targets from ChooserTargetServices
authorAdam Powell <adamp@google.com>
Mon, 6 Jul 2015 23:57:56 +0000 (16:57 -0700)
committerAdam Powell <adamp@google.com>
Tue, 7 Jul 2015 01:39:34 +0000 (18:39 -0700)
commita182e45c6851a8db89e8b0900f0812806ff295d4
treed3b9f9241132d743f012cd186237810851060033
parent441fc0fc68140368d5438a6eb5b896b4a9d6ad4e
Sort and limit ChooserActivity targets from ChooserTargetServices

Apply an automated decay factor if apps decide to claim all of their
targets are SUPER IMPORTANT. Apply the multiplier from the apps
themselves as well as a penalty for apps that come in late - let's see
how fast developers get their ChooserTargetServices to start!

Also fix a bug with ResolverDrawerLayout where dragging from the title
area wouldn't always work properly.

Bug 22302285

Change-Id: Ib6eb2b6fb92608790b2267c0f671c9ae59b2907e
core/java/com/android/internal/app/ChooserActivity.java
core/java/com/android/internal/app/ResolverActivity.java
core/java/com/android/internal/app/ResolverComparator.java
core/java/com/android/internal/widget/ResolverDrawerLayout.java