question: private void prepareReminders ( ) { CalendarEventModel model = mModel ; Resources r = mActivity . getResources ( ) ; mReminderMinuteValues = loadIntegerArray ( r , R . array . reminder_minutes_values ) ; mReminderMinuteLabels = loadStringArray ( r , R . array . reminder_minutes_labels ) ; mReminderMethodValues = loadIntegerArray ( r , R . array . reminder_methods_values ) ; mReminderMethodLabels = loadStringArray ( r , R . array . reminder_methods_labels ) ; if ( mModel . mCalendarAllowedReminders != null ) { EventViewUtils . reduceMethodList ( mReminderMethodValues , mReminderMethodLabels , mModel . mCalendarAllowedReminders ) ; } int numReminders = 0 ; if ( model . mHasAlarm ) { ArrayList < ReminderEntry > reminders = model . mReminders ; numReminders = reminders . size ( ) ; for ( ReminderEntry re : reminders ) { if ( mReminderMethodValues . contains ( re . getMethod ( ) ) ) { EventViewUtils . addMinutesToList ( mActivity , mReminderMinuteValues , mReminderMinuteLabels , re . getMinutes ( ) ) ; } } mUnsupportedReminders . clear ( ) ; for ( ReminderEntry re : reminders ) { if ( mReminderMethodValues . contains ( re . getMethod ( ) ) || re . getMethod ( ) == Reminders . METHOD_DEFAULT ) { EventViewUtils . addReminder ( mActivity , mScrollView , this , mReminderItems , mReminderMinuteValues , mReminderMinuteLabels , mReminderMethodValues , mReminderMethodLabels , re , Integer . MAX_VALUE , null ) ; } else { mUnsupportedReminders . add ( re ) ; } } } updateRemindersVisibility ( numReminders ) ; EventViewUtils . updateAddReminderButton ( mView , mReminderItems , mModel . mCalendarMaxReminders ) ; }
target:  Prepares the reminder UI elements. <p> (Re-)loads the minutes / methods lists from the XML assets, adds/removes items as needed for the current set of reminders and calendar properties, and then creates UI elements.