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

Commit b674ea3f authored by yuichiro fujiwara's avatar yuichiro fujiwara Committed by android-build-merger
Browse files

Merge "Fixes that Contacts crashes when invoke Action.EDIT with profile uri" am: a0788b81

am: 1cd5d118

Change-Id: I64dc41fea9312a1412f512ea92182fee3829abcf
parents 78faffde 1cd5d118
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -179,7 +179,8 @@ public class PickRawContactLoader extends
        if (uri == null) {
            throw new IllegalArgumentException("Uri must not be null");
        }
        if (!uri.toString().startsWith(Contacts.CONTENT_URI.toString())) {
        if (!uri.toString().startsWith(Contacts.CONTENT_URI.toString()) &&
                !uri.toString().equals(Profile.CONTENT_URI.toString())) {
            throw new IllegalArgumentException("Invalid contact Uri: " + uri);
        }
        return uri;