Fixing the handling of Contact Join Suggestions URI.
Bug description:
If the join suggestions URI came from a source without restricted data
access and the suggestions included a restricted contact, we would get
an exception from ReorderingCursorWrapper, basically saying: I expected
N suggestions, but I only got N-K (where K is the number of restricted
suggestions).
The fix makes sure the restricted suggestions are excluded early enough
to keep the reordering cursor wrapper happy.
Bug: http://b/2179486
Change-Id: I5d1268e063cdd7b15d74aff0c8556d4614eddfdb
1 file changed