Remove stream activities from sample sync adapter
Also fixed existing bug that prevented the "Add Connection" from working for the Ssample Sync Adapter. Bug: 11629361 Change-Id: I17940cc97ebef3e05dc53e534d5765395ba353a3
This commit is contained in:
@@ -119,18 +119,6 @@ public class SyncAdapter extends AbstractThreadedSyncAdapter {
|
||||
|
||||
ContactManager.updateStatusMessages(mContext, updatedContacts);
|
||||
|
||||
// This is a demo of how you can add stream items for contacts on
|
||||
// the client. This probably won't apply to
|
||||
// 2-way contact sync providers - it's more likely that one-way
|
||||
// sync providers (IM clients, social networking apps, etc) would
|
||||
// use this feature. This is only supported in ICS MR1 or above.
|
||||
|
||||
if (Build.VERSION.SDK_INT >=
|
||||
Build.VERSION_CODES.ICE_CREAM_SANDWICH_MR1) {
|
||||
ContactManager.addStreamItems(mContext, updatedContacts,
|
||||
account.name, account.type);
|
||||
}
|
||||
|
||||
// Save off the new sync marker. On our next sync, we only want to receive
|
||||
// contacts that have changed since this sync...
|
||||
setServerSyncMarker(account, newSyncState);
|
||||
|
||||
Reference in New Issue
Block a user