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

Commit 20ea6ce0 authored by Jim Miller's avatar Jim Miller
Browse files

Change get/set IsSyncable() methods to static. Add isUserFacing flag to...

Change get/set IsSyncable() methods to static.  Add isUserFacing flag to SyncAdapterType. Update api file.
parent d8711672
Loading
Loading
Loading
Loading
+13 −2
Original line number Diff line number Diff line
@@ -27037,7 +27037,7 @@
 abstract="false"
 native="false"
 synchronized="false"
 static="false"
 static="true"
 final="false"
 deprecated="not deprecated"
 visibility="public"
@@ -27349,7 +27349,7 @@
 abstract="false"
 native="false"
 synchronized="false"
 static="false"
 static="true"
 final="false"
 deprecated="not deprecated"
 visibility="public"
@@ -35797,6 +35797,17 @@
 visibility="public"
>
</field>
<field name="isUserFacing"
 type="boolean"
 transient="false"
 volatile="false"
 value="true"
 static="false"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
</class>
<interface name="SyncStatusObserver"
 abstract="true"
+2 −2
Original line number Diff line number Diff line
@@ -1015,7 +1015,7 @@ public abstract class ContentResolver {
     * Check if this account/provider is syncable.
     * @return >0 if it is syncable, 0 if not, and <0 if the state isn't known yet.
     */
    public int getIsSyncable(Account account, String authority) {
    public static int getIsSyncable(Account account, String authority) {
        try {
            return getContentService().getIsSyncable(account, authority);
        } catch (RemoteException e) {
@@ -1027,7 +1027,7 @@ public abstract class ContentResolver {
     * Set whether this account/provider is syncable.
     * @param syncable >0 denotes syncable, 0 means not syncable, <0 means unknown
     */
    public void setIsSyncable(Account account, String authority, int syncable) {
    public static void setIsSyncable(Account account, String authority, int syncable) {
        try {
            getContentService().setIsSyncable(account, authority, syncable);
        } catch (RemoteException e) {
+1 −0
Original line number Diff line number Diff line
@@ -27,6 +27,7 @@ import android.os.Parcel;
public class SyncAdapterType implements Parcelable {
    public final String authority;
    public final String accountType;
    public final boolean isUserFacing = true; // TODO: implement logic to set this

    public SyncAdapterType(String authority, String accountType) {
        if (TextUtils.isEmpty(authority)) {