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

Commit 9b8dd634 authored by Debashish Chatterjee's avatar Debashish Chatterjee
Browse files

Got rid of deprecated fields from VoicemailContract api.

No one should now be using these fields. SOURCE_CONTENT_URI was not
marked deprecated, but following a recent change in content provider
this field is also no more in use.

Change-Id: I58bb7872ba2f6cec169499d1a01d755232dde2f0
parent fc8a3b22
Loading
Loading
Loading
Loading
+1 −21
Original line number Diff line number Diff line
@@ -52,18 +52,6 @@ public class VoicemailContract {

    /** The authority used by the voicemail provider. */
    public static final String AUTHORITY = "com.android.voicemail";
    /**
     * URI to insert/retrieve all voicemails.
     * @deprecated
     */
    public static final Uri CONTENT_URI =
            Uri.parse("content://" + AUTHORITY + "/voicemail");
    /**
     * URI to insert/retrieve voicemails by a given voicemail source.
     * @deprecated
     */
    public static final Uri CONTENT_URI_SOURCE =
            Uri.parse("content://" + AUTHORITY + "/voicemail/source/");
    /**
     * Parameter key used in the URI to specify the voicemail source package name.
     * <p> This field must be set in all requests that originate from a voicemail source.
@@ -80,23 +68,15 @@ public class VoicemailContract {
     */
    public static final String EXTRA_SELF_CHANGE = "com.android.voicemail.extra.SELF_CHANGE";

    /**
     * The mime type for a collection of voicemails.
     * @deprecated */
    public static final String DIR_TYPE = "vnd.android.cursor.dir/voicemails";

    /** Defines fields exposed through the /voicemail path of this content provider. */
    public static final class Voicemails implements BaseColumns {
        /** Not instantiable. */
        private Voicemails() {
        }

        /** URI to insert/retrieve voicemails by a given voicemail source. */
        /** URI to insert/retrieve voicemails. */
        public static final Uri CONTENT_URI =
            Uri.parse("content://" + AUTHORITY + "/voicemail");
        /** URI to insert/retrieve voicemails by a given voicemail source. */
        public static final Uri CONTENT_URI_SOURCE =
                Uri.parse("content://" + AUTHORITY + "/voicemail/source/");

        /** The mime type for a collection of voicemails. */
        public static final String DIR_TYPE = "vnd.android.cursor.dir/voicemails";