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

Commit 42668561 authored by yuichiro fujiwara's avatar yuichiro fujiwara Committed by Takahiro Manabe
Browse files

Fixes that Contacts crashes when invoke Action.EDIT with profile uri

Modify checking method the URI parameter of Intent.ACTION_EDIT.
Support to "content://com.android.contacts/profile".

Affected Area:
Launch Contact edit screen.

Bug: 67727198
Change-Id: I53bab4c9a5e11f420e2075a6af4b48858b3bd4c0
parent 3ba72351
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;