public final class

ContactsPreferencesActivity

extends ExpandableListActivity
implements View.OnClickListener AdapterView.OnItemClickListener
java.lang.Object
   ↳ android.content.Context
     ↳ android.content.ContextWrapper
       ↳ android.view.ContextThemeWrapper
         ↳ android.app.Activity
           ↳ android.app.ExpandableListActivity
             ↳ com.android.contacts.ui.ContactsPreferencesActivity

Class Overview

Shows a list of all available Groups available, letting the user select which ones they want to be visible.

Summary

Nested Classes
class ContactsPreferencesActivity.AccountDisplay ContactsPreferencesActivity.GroupDelta details for a single Account, usually shown as children under a single expandable group. 
class ContactsPreferencesActivity.AccountSet Set of all ContactsPreferencesActivity.AccountDisplay entries, one for each source. 
class ContactsPreferencesActivity.DisplayAdapter ExpandableListAdapter that shows ContactsPreferencesActivity.GroupDelta settings, grouped by Account source. 
class ContactsPreferencesActivity.GroupDelta Entry holding any changes to Groups or Settings rows, such as SHOULD_SYNC or GROUP_VISIBLE
interface ContactsPreferencesActivity.Prefs  
class ContactsPreferencesActivity.UpdateTask Background task that persists changes to GROUP_VISIBLE, showing spinner dialog to user while updating. 
[Expand]
Inherited Constants
From class android.app.Activity
From class android.content.Context
From interface android.content.ComponentCallbacks2
[Expand]
Inherited Fields
From class android.app.Activity
Public Constructors
ContactsPreferencesActivity()
Public Methods
void onBackPressed()
boolean onChildClick(ExpandableListView parent, View view, int groupPosition, int childPosition, long id)
Handle any clicks on ExpandableListAdapter children, which usually mean toggling its visible state.
void onClick(View view)
void onCreateContextMenu(ContextMenu menu, View view, ContextMenu.ContextMenuInfo menuInfo)
void onItemClick(AdapterView<?> parent, View view, int position, long id)
Handle any clicks on header views added to our #mAdapter, which are usually the global modifier checkboxes.
void startSearch(String initialQuery, boolean selectInitialQuery, Bundle appSearchData, boolean globalSearch)
Protected Methods
int getSyncMode(ContactsPreferencesActivity.AccountDisplay account)
void handleRemoveSync(ContactsPreferencesActivity.AccountDisplay account, ContactsPreferencesActivity.GroupDelta child, int syncMode, CharSequence title)
void onCreate(Bundle icicle)
Dialog onCreateDialog(int id, Bundle args)
void onPrepareDialog(int id, Dialog dialog, Bundle args)
void onResume()
void setDisplayOnlyPhones(boolean displayOnlyPhones)
Assign a specific value to DISPLAY_ONLY_PHONES, refreshing the visible list as needed.
void setDisplayOrder(DialogInterface dialog)
void setSortOrder(DialogInterface dialog)
void showAddSync(ContextMenu menu, ContactsPreferencesActivity.AccountDisplay account, int syncMode)
void showRemoveSync(ContextMenu menu, ContactsPreferencesActivity.AccountDisplay account, ContactsPreferencesActivity.GroupDelta child, int syncMode)
[Expand]
Inherited Methods
From class android.app.ExpandableListActivity
From class android.app.Activity
From class android.view.ContextThemeWrapper
From class android.content.ContextWrapper
From class android.content.Context
From class java.lang.Object
From interface android.content.ComponentCallbacks
From interface android.content.ComponentCallbacks2
From interface android.view.KeyEvent.Callback
From interface android.view.LayoutInflater.Factory
From interface android.view.LayoutInflater.Factory2
From interface android.view.View.OnClickListener
From interface android.view.View.OnCreateContextMenuListener
From interface android.view.Window.Callback
From interface android.widget.AdapterView.OnItemClickListener
From interface android.widget.ExpandableListView.OnChildClickListener
From interface android.widget.ExpandableListView.OnGroupCollapseListener
From interface android.widget.ExpandableListView.OnGroupExpandListener

Public Constructors

public ContactsPreferencesActivity ()

Public Methods

public void onBackPressed ()

public boolean onChildClick (ExpandableListView parent, View view, int groupPosition, int childPosition, long id)

Handle any clicks on ExpandableListAdapter children, which usually mean toggling its visible state.

public void onClick (View view)

public void onCreateContextMenu (ContextMenu menu, View view, ContextMenu.ContextMenuInfo menuInfo)

public void onItemClick (AdapterView<?> parent, View view, int position, long id)

Handle any clicks on header views added to our #mAdapter, which are usually the global modifier checkboxes.

public void startSearch (String initialQuery, boolean selectInitialQuery, Bundle appSearchData, boolean globalSearch)

Protected Methods

protected int getSyncMode (ContactsPreferencesActivity.AccountDisplay account)

protected void handleRemoveSync (ContactsPreferencesActivity.AccountDisplay account, ContactsPreferencesActivity.GroupDelta child, int syncMode, CharSequence title)

protected void onCreate (Bundle icicle)

protected Dialog onCreateDialog (int id, Bundle args)

protected void onPrepareDialog (int id, Dialog dialog, Bundle args)

protected void onResume ()

protected void setDisplayOnlyPhones (boolean displayOnlyPhones)

Assign a specific value to DISPLAY_ONLY_PHONES, refreshing the visible list as needed.

protected void setDisplayOrder (DialogInterface dialog)

protected void setSortOrder (DialogInterface dialog)

protected void showAddSync (ContextMenu menu, ContactsPreferencesActivity.AccountDisplay account, int syncMode)

protected void showRemoveSync (ContextMenu menu, ContactsPreferencesActivity.AccountDisplay account, ContactsPreferencesActivity.GroupDelta child, int syncMode)