use of com.nolanlawson.keepscore.data.TextWithDeleteAdapter.OnDeleteListener in project KeepScore by nolanlawson.
the class SettingsActivity method createAvailableSettingSetsAdapter.
private TextWithDeleteAdapter createAvailableSettingSetsAdapter() {
List<String> availableSettingSets = new ArrayList<String>(SettingSetHelper.getAvailableSettingSets(this));
Collections.sort(availableSettingSets);
final TextWithDeleteAdapter adapter = new TextWithDeleteAdapter(this, availableSettingSets);
adapter.setOnDeleteListener(new OnDeleteListener() {
@Override
public void onDelete(final String settingSetName) {
onDeleteSettingSet(adapter, settingSetName);
}
});
return adapter;
}
Aggregations