public static void addMinutesToList(Context context,ArrayList<Integer> values,ArrayList<String> labels,int minutes){
  int index=values.indexOf(minutes);
  if (index != -1) {
    return;
  }
  String label=constructReminderLabel(context,minutes,false);
  int len=values.size();
  for (int i=0; i < len; i++) {
    if (minutes < values.get(i)) {
      values.add(i,minutes);
      labels.add(i,label);
      return;
    }
  }
  values.add(minutes);
  labels.add(len,label);
}

public static void addMinutesToList ( Context context , ArrayList < Integer > values , ArrayList < String > labels , int minutes ) { int index = values . indexOf ( minutes ) ; if ( index != - 1 ) { return ; } String label = constructReminderLabel ( context , minutes , false ) ; int len = values . size ( ) ; for ( int i = 0 ; i < len ; i ++ ) { if ( minutes < values . get ( i ) ) { values . add ( i , minutes ) ; labels . add ( i , label ) ; return ; } } values . add ( minutes ) ; labels . add ( len , label ) ; }
if " minutes " is not currently present in " values " , we add an appropriate new entry to values and labels .
