OSDN Git Service

Make ResolverActivity respect selector intent when making filters
authorHenrik Engström <henrik.engstrom@sonymobile.com>
Thu, 17 Jul 2014 10:18:29 +0000 (12:18 +0200)
committerAdam Powell <adamp@google.com>
Wed, 13 Apr 2016 15:45:29 +0000 (08:45 -0700)
commit3277cf1ea4f89d073f60b665ed48a5639de99ef2
treeff5ddd60f8338c3e51833d40aef5b47a145db824
parent2089575686331550138af542dff331e56283cb64
Make ResolverActivity respect selector intent when making filters

When the ResolverActivity makes a filter after an intent is chosen,
either for remembering last used or an "always use" choice for the
user it doesn't consider the selector in the intent if present.

This means that when a resolver activity is launched for an intent
with a selector, the selector is used for resolving preferred
activities, and for populating the list, but when the same intent
is sent again it doesn't match the filter created by the previous
ResolverActivity.

This in turn means that the user will get another ResolverActivity
even if "Always Use" was chosen the last time.

Bug: 28129216

Change-Id: I29be7010e7c890caf9789673b3c3f821ba362761
core/java/com/android/internal/app/ResolverActivity.java