mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-18 13:21:02 +00:00
Allow whole day conditions
This commit is contained in:
parent
9e3ea2818f
commit
68ce09107b
1 changed files with 2 additions and 1 deletions
|
@ -906,13 +906,14 @@ public class FragmentRule extends FragmentBase {
|
|||
jcondition.put("header", jheader);
|
||||
}
|
||||
|
||||
int day = spScheduleDay.getSelectedItemPosition();
|
||||
Object start = tvScheduleStart.getTag();
|
||||
Object end = tvScheduleEnd.getTag();
|
||||
if (start == null)
|
||||
start = 0;
|
||||
if (end == null)
|
||||
end = 0;
|
||||
if (!start.equals(end)) {
|
||||
if (!(day == 0 && start.equals(end))) {
|
||||
JSONObject jschedule = new JSONObject();
|
||||
jschedule.put("day", spScheduleDay.getSelectedItemPosition() - 1);
|
||||
jschedule.put("start", (int) start);
|
||||
|
|
Loading…
Reference in a new issue