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

Commit 6c753558 authored by Leland Miller's avatar Leland Miller
Browse files

Add part ID reuse to API contract

This make explicit that part IDs should not be reused to point to new
parts as this may cause issues in applications that expect pars to
remain consistent.

Test: Documentation change, will follow up with a CTS test
Change-Id: I990aa5848f59cc85c76d129701cba1ca27c78894
parent bc40469e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -37360,6 +37360,7 @@ package android.provider {
    field public static final String CONTENT_ID = "cid";
    field public static final String CONTENT_LOCATION = "cl";
    field public static final String CONTENT_TYPE = "ct";
    field public static final android.net.Uri CONTENT_URI;
    field public static final String CT_START = "ctt_s";
    field public static final String CT_TYPE = "ctt_t";
    field public static final String FILENAME = "fn";
+9 −0
Original line number Diff line number Diff line
@@ -2311,6 +2311,9 @@ public final class Telephony {

        /**
         * Contains message parts.
         *
         * To avoid issues where applications might cache a part ID, the ID of a deleted part must
         * not be reused to point at a new part.
         */
        public static final class Part implements BaseColumns {

@@ -2321,6 +2324,12 @@ public final class Telephony {
            private Part() {
            }

            /**
             * The {@code content://} style URL for this table. Can be appended with a part ID to
             * address individual parts.
             */
            public static final Uri CONTENT_URI = Uri.withAppendedPath(Mms.CONTENT_URI, "part");

            /**
             * The identifier of the message which this part belongs to.
             * <P>Type: INTEGER</P>