直升机,
我有一个问题。
我正在使用RecurrencePickerDialogFragment:
final RecurrencePickerDialogFragment.OnRecurrenceSetListener recurrencelistener = new RecurrencePickerDialogFragment.OnRecurrenceSetListener() {
@Override
public void onRecurrenceSet(String rrule) {
setRRule(rrule);
newReccurenceListener();
}
};
repeatrule.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
boolean sameday = timefrom.get(Calendar.YEAR) == timeto.get(Calendar.YEAR) &&
timefrom.get(Calendar.DAY_OF_MONTH) == timeto.get(Calendar.DAY_OF_MONTH) &&
timefrom.get(Calendar.MONTH) == timeto.get(Calendar.MONTH);
if (sameday == true) {
FragmentManager fm = getSupportFragmentManager();
Bundle bundle = new Bundle();
Calendar time = Calendar.getInstance();
bundle.putLong(RecurrencePickerDialogFragment.BUNDLE_START_TIME_MILLIS, time.getTimeInMillis());
bundle.putString(RecurrencePickerDialogFragment.BUNDLE_TIME_ZONE, time.getTimeZone().getID());
if (NewDate.this.rrule != null) {
bundle.putString(RecurrencePickerDialogFragment.BUNDLE_RRULE, NewDate.this.rrule);
}
RecurrencePickerDialogFragment rpd = (RecurrencePickerDialogFragment) fm.findFragmentByTag(
"recurrencePickerDialogFragment");
if (rpd != null) {
rpd.dismiss();
}
rpd = new RecurrencePickerDialogFragment();
rpd.setArguments(bundle);
rpd.setOnRecurrenceSetListener(recurrencelistener);
rpd.show(fm, "recurrencePickerDialogFragment");
}
}
});
但我有一个问题:
如何从RecurrencePickerDialogFragment中排除每小时重现?