Small behavior improvement

This commit is contained in:
M66B 2019-09-01 19:08:47 +02:00
parent 8f3c0edf02
commit 5fdc82c00c
1 changed files with 3 additions and 3 deletions

View File

@ -1677,15 +1677,15 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
if (message.ui_snoozed != null) { if (message.ui_snoozed != null) {
DateFormat DTF = Helper.getDateTimeInstance(context, SimpleDateFormat.MEDIUM, SimpleDateFormat.SHORT); DateFormat DTF = Helper.getDateTimeInstance(context, SimpleDateFormat.MEDIUM, SimpleDateFormat.SHORT);
DateFormat D = new SimpleDateFormat("E"); DateFormat D = new SimpleDateFormat("E");
Snackbar.make( ToastEx.makeText(
parentFragment.getView(), context,
D.format(message.ui_snoozed) + " " + DTF.format(message.ui_snoozed) + " - " + D.format(message.ui_snoozed) + " " + DTF.format(message.ui_snoozed) + " - " +
DateUtils.getRelativeTimeSpanString( DateUtils.getRelativeTimeSpanString(
message.ui_snoozed, message.ui_snoozed,
System.currentTimeMillis(), System.currentTimeMillis(),
DateUtils.MINUTE_IN_MILLIS, DateUtils.MINUTE_IN_MILLIS,
DateUtils.FORMAT_ABBREV_RELATIVE), DateUtils.FORMAT_ABBREV_RELATIVE),
Snackbar.LENGTH_LONG).show(); Toast.LENGTH_LONG).show();
} }
} }