Skip to content

Commit

Permalink
Merge pull request #212 from yutaono/fix-calendar-spell
Browse files Browse the repository at this point in the history
Fix calendar spelling
  • Loading branch information
mpost committed Oct 31, 2015
2 parents c4fb367 + 39821c2 commit 61b89f9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,11 @@ private List<CalendarEvent> getTimeFilteredEventList() {
}

private String getCalendarSelection() {
Set<String> activeCalenders = CalendarPreferences.getActiveCalendars(context);
Set<String> activeCalendars = CalendarPreferences.getActiveCalendars(context);
StringBuilder stringBuilder = new StringBuilder(EVENT_SELECTION);
if (!activeCalenders.isEmpty()) {
if (!activeCalendars.isEmpty()) {
stringBuilder.append(AND_BRACKET);
Iterator<String> iterator = activeCalenders.iterator();
Iterator<String> iterator = activeCalendars.iterator();
while (iterator.hasNext()) {
String calendarId = iterator.next();
stringBuilder.append(Instances.CALENDAR_ID);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@ private void populatePreferenceScreen(Set<String> activeCalendars) {
@Override
public void onPause() {
super.onPause();
HashSet<String> selectedCalendars = getSelectedCalenders();
HashSet<String> selectedCalendars = getSelectedCalendars();
if (!selectedCalendars.equals(initialActiveCalendars)) {
CalendarPreferences.setActiveCalendars(getActivity(), selectedCalendars);
EventAppWidgetProvider.updateEventList(getActivity());
}
}

private HashSet<String> getSelectedCalenders() {
private HashSet<String> getSelectedCalendars() {
PreferenceScreen preferenceScreen = getPreferenceScreen();
int prefCount = preferenceScreen.getPreferenceCount();
HashSet<String> prefValues = new HashSet<>();
Expand Down

0 comments on commit 61b89f9

Please sign in to comment.