enhanced MeetingsController
This commit is contained in:
@@ -117,7 +117,7 @@ public class MeetingsController {
|
||||
return meetingList;
|
||||
}
|
||||
|
||||
private void removeMeeting(int meeting) {
|
||||
public void removeMeeting(int meeting) {
|
||||
MainActivity act = (MainActivity)context;
|
||||
ArrayList<Meeting> meetings = getMeetings();
|
||||
if (meetings.size() > 0 && meeting != -1) {
|
||||
@@ -156,4 +156,15 @@ public class MeetingsController {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public int searchMeetingInList(ArrayList<Meeting> meetings, String name) {
|
||||
int found = -1;
|
||||
for (int i = 0; i < meetings.size(); i++) {
|
||||
if (meetings.get(i).meetingName.equals(name)) {
|
||||
found = i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return found;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user