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

Commit cdf961b1 authored by Daniel Lehmann's avatar Daniel Lehmann
Browse files

Fix a regression with lookupKeys that contain special characters

Bug:2561233

Change-Id: Id11839aa837be0735f380792b2007160aa765405
parent 6013973b
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -402,7 +402,7 @@ public class ViewContactActivity extends Activity


        // Contains an Id.
        // Contains an Id.
        final long uriContactId = Long.parseLong(segments.get(3));
        final long uriContactId = Long.parseLong(segments.get(3));
        final String uriLookupKey = segments.get(2);
        final String uriLookupKey = Uri.encode(segments.get(2));
        final Uri dataUri = Uri.withAppendedPath(
        final Uri dataUri = Uri.withAppendedPath(
                ContentUris.withAppendedId(Contacts.CONTENT_URI, uriContactId),
                ContentUris.withAppendedId(Contacts.CONTENT_URI, uriContactId),
                Contacts.Data.CONTENT_DIRECTORY);
                Contacts.Data.CONTENT_DIRECTORY);