fix: cache file time

This commit is contained in:
xtaodada 2023-01-25 15:13:42 +08:00
parent 43ead61b47
commit 6a83dddcfb
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659

View File

@ -748,7 +748,7 @@ public class CachedMediaLayout extends FrameLayout implements NestedSizeNotifier
boolean animated = file == holder.itemView.getTag();
boolean divider = position != itemInners.size() - 1;
holder.itemView.setTag(file);
long date = file.file.lastModified();
long date = file.file.lastModified() / 1000;
cell.setTextAndValueAndTypeAndThumb(file.messageType == MessageObject.TYPE_ROUND_VIDEO ? LocaleController.getString("AttachRound", R.string.AttachRound) : file.file.getName(), LocaleController.formatDateAudio(date, true), Utilities.getExtension(file.file.getName()), null, 0, divider);
if (!animated) {