Fix intent resolution of default preferred apps.
If more than one third party app matches the Intent specified in the file that defines the default preferred apps, this was not persisted to package-restrictions.xml. This occurs because the loop breaks early when iterating over matching components after the first third party app that matches is discovered. So, any elements in the list of matching ResolveInfo objects would not be placed into set, leaving those entries as null. In its constructor, PreferredComponent will discard all components in set if any entry is null. Instead of breaking, continue after filling that entry in the set array, so that the previously matched value won't be overwritten. However, the set must be filled so that it will be persisted later in PreferredComponent. Fixes CYNGNOS-663. Change-Id: I9a1d57219e3cd6f883a914e13f67b74241780665
Loading
Please register or sign in to comment