Changed names of few functions.

This commit is contained in:
Robert Kolner committed 2011-12-05 19:08:06 +01:00
1 parent 3d8a94121d
commit aff112474d
2 files changed
+4 -4

No files matched your search

@@ -61,7 +61,7 @@ public class DataHandler {
return null;
}
public Event[] populateEventList(String category) {
public Event[] getEvents(String category) {
if (category.equals(Event.ALL)) {
return events.toArray(new Event[events.size()]);
}
@@ -75,7 +75,7 @@ public class DataHandler {
return sorted.toArray(new Event[sorted.size()]);
}
public Event[] getAllEventsWithTickets() {
public Event[] getEventsWithTickets() {
LinkedList<Event> list = new LinkedList<Event>();
for (Event event : events) {
@@ -87,7 +87,7 @@ public class DataHandler {
return list.toArray(new Event[list.size()]);
}
public News[] populateNewsList() {
public News[] getNews() {
return this.news.toArray(new News[this.news.size()]);
}
@@ -91,7 +91,7 @@ public class ProgramListActivity extends BaseDnsActivity {
protected ListAdapter createAdapter(String category) {
Event[] events = dataHandler.populateEventList(category);
Event[] events = dataHandler.getEvents(category);
ListAdapter adapter = new ArrayAdapter<Event>(this, R.layout.event_list_row, R.id.event_list_row_text, events) {
@Override