Send after 30 minutes by default

pull/214/head
M66B 1 year ago
parent eac837d5c9
commit 20c00b8a4c

@ -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…
Cancel
Save