Show date header if older than yesterday

pull/162/head
M66B 5 years ago
parent 9d3ee14fc7
commit 34f499d86f

@ -562,7 +562,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
cal.set(Calendar.MINUTE, 0);
cal.set(Calendar.SECOND, 0);
cal.set(Calendar.MILLISECOND, 0);
cal.add(Calendar.DAY_OF_MONTH, -2);
cal.add(Calendar.DAY_OF_MONTH, -1);
if (message.received <= cal.getTimeInMillis())
tvDate.setText(
DateUtils.formatDateRange(

Loading…
Cancel
Save