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

Commit e6d3d28a authored by Daniel Lehmann's avatar Daniel Lehmann
Browse files

Allow a sync adapter to provide an OPEN action for a group

Bug:4413120
Change-Id: I17572204dc9fad3406d2505c83586b9dbce177b9
parent fd909a77
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -16008,6 +16008,8 @@ package android.provider {
  }
  protected static abstract interface ContactsContract.GroupsColumns {
    field public static final java.lang.String ACTION = "action";
    field public static final java.lang.String ACTION_URI = "action_uri";
    field public static final java.lang.String AUTO_ADD = "auto_add";
    field public static final java.lang.String DATA_SET = "data_set";
    field public static final java.lang.String DELETED = "deleted";
+23 −0
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@
package android.provider;

import android.accounts.Account;
import android.app.Activity;
import android.content.ContentProviderClient;
import android.content.ContentProviderOperation;
import android.content.ContentResolver;
@@ -6250,6 +6251,28 @@ public final class ContactsContract {
         */
        public static final String NOTES = "notes";

        /**
         * The Activity action to open the group in the source app (e.g.
         * {@link Intent#ACTION_VIEW}). Can be NULL if the group does not have a dedicated viewer.
         * This is used in conjunction with {@link #ACTION_URI}: In order to show an "Open in
         * (sourceapp)"-button, both of these fields must be set
         * <p>
         * Type: TEXT
         */
        public static final String ACTION = "action";


        /**
         * Uri to open the group in the source app.
         * Can be NULL if the group does not have a dedicated viewer.
         * This is used in conjunction with {@link #ACTION}: In order to show an "Open in
         * (sourceapp)"-button, both of these fields must be set
         * <p>
         * Type: TEXT
         */
        public static final String ACTION_URI = "action_uri";


        /**
         * The ID of this group if it is a System Group, i.e. a group that has a special meaning
         * to the sync adapter, null otherwise.