protected static class

ContactsPreferencesActivity.GroupDelta

extends EntityDelta.ValuesDelta
java.lang.Object
   ↳ com.android.contacts.model.EntityDelta.ValuesDelta
     ↳ com.android.contacts.ui.ContactsPreferencesActivity.GroupDelta

Class Overview

Entry holding any changes to Groups or Settings rows, such as SHOULD_SYNC or GROUP_VISIBLE.

Summary

[Expand]
Inherited Constants
From interface android.os.Parcelable
[Expand]
Inherited Fields
From class com.android.contacts.model.EntityDelta.ValuesDelta
Public Methods
boolean beforeExists()
ContentProviderOperation buildDiff()
Build a possible ContentProviderOperation to persist any changes to the Groups or Settings row described by this ContactsPreferencesActivity.GroupDelta.
static ContactsPreferencesActivity.GroupDelta fromAfter(ContentValues after)
static ContactsPreferencesActivity.GroupDelta fromBefore(ContentValues before)
static ContactsPreferencesActivity.GroupDelta fromSettings(ContentResolver resolver, String accountName, String accountType, boolean accountHasGroups)
Build ContactsPreferencesActivity.GroupDelta from the Settings row for the given ACCOUNT_NAME and ACCOUNT_TYPE.
boolean getShouldSync()
CharSequence getTitle(Context context)
boolean getVisible()
void putShouldSync(boolean shouldSync)
void putVisible(boolean visible)
Protected Methods
ContactsPreferencesActivity.GroupDelta setUngrouped(boolean accountHasGroups)
[Expand]
Inherited Methods
From class com.android.contacts.model.EntityDelta.ValuesDelta
From class java.lang.Object
From interface android.os.Parcelable

Public Methods

public boolean beforeExists ()

public ContentProviderOperation buildDiff ()

Build a possible ContentProviderOperation to persist any changes to the Groups or Settings row described by this ContactsPreferencesActivity.GroupDelta.

public static ContactsPreferencesActivity.GroupDelta fromAfter (ContentValues after)

public static ContactsPreferencesActivity.GroupDelta fromBefore (ContentValues before)

public static ContactsPreferencesActivity.GroupDelta fromSettings (ContentResolver resolver, String accountName, String accountType, boolean accountHasGroups)

Build ContactsPreferencesActivity.GroupDelta from the Settings row for the given ACCOUNT_NAME and ACCOUNT_TYPE.

public boolean getShouldSync ()

public CharSequence getTitle (Context context)

public boolean getVisible ()

public void putShouldSync (boolean shouldSync)

public void putVisible (boolean visible)

Protected Methods

protected ContactsPreferencesActivity.GroupDelta setUngrouped (boolean accountHasGroups)