if (contactList.size() == 0) {
Toast.makeText(this, “目前没有可选的联系人”, Toast.LENGTH_SHORT)
.show();
break;
}
item.setIcon(R.drawable.select_all);
selectAllContacts();
}
break;
case R.id.delete_item:
// 删除
if (count == 0) {
Toast.makeText(this, “您还没有选择任何联系人”, Toast.LENGTH_SHORT).show();
break;
}
showDeleteDialog(this, “您确定要删除吗”);
isAllChecked = false;
selectAllItem.setIcon(R.drawable.select_all_not);
break;
case R.id.sync_item:
Intent fresh_intent = new Intent(this, CloudSyncActivity.class);
if (flag) {// 如果是会议
fresh_intent.putExtra(“number”, meetingNumber);
}
startActivityForResult(fresh_intent, CLOUD_SYNC);
break;
default:
break;
}