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

Commit 8df27709 authored by Android (Google) Code Review's avatar Android (Google) Code Review
Browse files

Merge change 5234

* changes:
  Adds precedence information to the CommonDataKinds.Im class.
parents 7f94b60c c043752c
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -16,6 +16,9 @@

package android.provider;

import java.util.Arrays;
import java.util.List;

import android.content.Intent;
import android.graphics.BitmapFactory;
import android.net.Uri;
@@ -520,6 +523,18 @@ public final class ContactsContract {
            }
        }

        /**
         * Returns the precedence of the status code the higher number being the higher precedence.
         *
         * @param status The status code.
         * @return An integer representing the precedence, 0 being the lowest.
         */
        public static final int getPresencePrecedence(int status) {
            // Keep this function here incase we want to enforce a different precedence than the
            // natural order of the status constants.
            return status;
        }

        /**
         * The MIME type of {@link #CONTENT_URI} providing a directory of
         * presence details.