mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-01 17:26:12 +00:00
Send after 30 minutes by default
This commit is contained in:
parent
eac837d5c9
commit
20c00b8a4c
1 changed files with 6 additions and 0 deletions
|
@ -57,6 +57,7 @@ import java.text.DateFormat;
|
|||
import java.text.SimpleDateFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Calendar;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
|
@ -532,6 +533,11 @@ public class FragmentDialogSend extends FragmentDialogBase {
|
|||
args.putString("title", getString(R.string.title_send_at));
|
||||
args.putLong("id", id);
|
||||
|
||||
Calendar cal = Calendar.getInstance();
|
||||
cal.setTimeInMillis(new Date().getTime());
|
||||
cal.set(Calendar.MINUTE, cal.get(Calendar.MINUTE) + 30);
|
||||
args.putLong("time", cal.getTimeInMillis());
|
||||
|
||||
FragmentDialogDuration fragment = new FragmentDialogDuration();
|
||||
fragment.setArguments(args);
|
||||
fragment.setTargetFragment(FragmentDialogSend.this, 1);
|
||||
|
|
Loading…
Reference in a new issue