Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit f97ee51e authored by Matt Garnes's avatar Matt Garnes Committed by Gerrit Code Review
Browse files

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
parent ffdf8250
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment