Use correct timestamp for footer collapse.

Fixes #8071
This commit is contained in:
Greyson Parrelli
2018-08-06 10:34:02 -04:00
parent f6951b9ae0
commit c8571d7bc7
2 changed files with 4 additions and 4 deletions

View File

@@ -136,8 +136,8 @@ public class DateUtils extends android.text.format.DateUtils {
return DATE_FORMAT.format(new Date(t1)).equals(DATE_FORMAT.format(new Date(t2)));
}
public static boolean isSameBriefRelativeTimestamp(@NonNull Context context, @NonNull Locale locale, long t1, long t2) {
return getBriefRelativeTimeSpanString(context, locale, t1).equals(getBriefRelativeTimeSpanString(context, locale, t2));
public static boolean isSameExtendedRelativeTimestamp(@NonNull Context context, @NonNull Locale locale, long t1, long t2) {
return getExtendedRelativeTimeSpanString(context, locale, t1).equals(getExtendedRelativeTimeSpanString(context, locale, t2));
}
private static String getLocalizedPattern(String template, Locale locale) {