use of com.clear.helpers.EntryItem in project AndroidCleaner by ReguloSarmiento.
the class HistoryActivity method onItemClick.
@Override
public void onItemClick(AdapterView<?> arg0, View view, int position, long arg3) {
EntryItem item = (EntryItem) items.get(position);
CheckBox box = (CheckBox) view.findViewById(R.id.checkBox1);
if (item.title.equals(getResources().getString(R.string.files))) {
if (!item.isSelected()) {
mensajeAlerta(item, box);
} else {
item.setSelected(false);
box.setChecked(item.isSelected());
}
} else {
if (!item.isSelected()) {
item.setSelected(true);
box.setChecked(item.isSelected());
} else {
item.setSelected(false);
box.setChecked(item.isSelected());
}
}
}
Aggregations