mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-02 19:10:11 +01:00
Fixed some more time formatting
This commit is contained in:
@@ -46,7 +46,7 @@ public class AdapterRuleMatch extends RecyclerView.Adapter<AdapterRuleMatch.View
|
||||
|
||||
private List<EntityMessage> items = new ArrayList<>();
|
||||
|
||||
private DateFormat DF = SimpleDateFormat.getDateTimeInstance(SimpleDateFormat.SHORT, SimpleDateFormat.SHORT);
|
||||
private DateFormat DTF;
|
||||
|
||||
public class ViewHolder extends RecyclerView.ViewHolder {
|
||||
private View view;
|
||||
@@ -68,7 +68,7 @@ public class AdapterRuleMatch extends RecyclerView.Adapter<AdapterRuleMatch.View
|
||||
}
|
||||
|
||||
private void bindTo(EntityMessage message) {
|
||||
tvTime.setText(DF.format(message.received));
|
||||
tvTime.setText(DTF.format(message.received));
|
||||
tvSubject.setText(message.subject);
|
||||
}
|
||||
}
|
||||
@@ -78,6 +78,8 @@ public class AdapterRuleMatch extends RecyclerView.Adapter<AdapterRuleMatch.View
|
||||
this.owner = owner;
|
||||
this.inflater = LayoutInflater.from(context);
|
||||
|
||||
this.DTF = Helper.getDateTimeInstance(context, SimpleDateFormat.SHORT, SimpleDateFormat.SHORT);
|
||||
|
||||
setHasStableIds(true);
|
||||
|
||||
owner.getLifecycle().addObserver(new LifecycleObserver() {
|
||||
|
||||
Reference in New Issue
Block a user