mirror of https://github.com/M66B/FairEmail.git
Send: display waiting for suitable connection
This commit is contained in:
parent
7d0e1d7bb0
commit
389d032185
|
@ -6650,9 +6650,13 @@ public class FragmentCompose extends FragmentBase {
|
|||
EntityOperation.queue(context, draft, EntityOperation.SEND);
|
||||
|
||||
final String feedback;
|
||||
if (draft.ui_snoozed == null)
|
||||
feedback = context.getString(R.string.title_queued);
|
||||
else {
|
||||
if (draft.ui_snoozed == null) {
|
||||
boolean suitable = ConnectionHelper.getNetworkState(context).isSuitable();
|
||||
if (suitable)
|
||||
feedback = context.getString(R.string.title_queued);
|
||||
else
|
||||
feedback = context.getString(R.string.title_notification_waiting);
|
||||
} else {
|
||||
DateFormat DTF = Helper.getDateTimeInstance(context);
|
||||
feedback = context.getString(R.string.title_queued_at, DTF.format(draft.ui_snoozed));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue