mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-31 18:11:03 +01:00
Workaround 12/24 hour Android 5.1/6 bug
This commit is contained in:
@@ -41,7 +41,7 @@ public class AdapterLog extends RecyclerView.Adapter<AdapterLog.ViewHolder> {
|
||||
|
||||
private List<EntityLog> items = new ArrayList<>();
|
||||
|
||||
private DateFormat DF = SimpleDateFormat.getTimeInstance();
|
||||
private DateFormat TF = SimpleDateFormat.getTimeInstance();
|
||||
|
||||
public class ViewHolder extends RecyclerView.ViewHolder {
|
||||
private TextView tvTime;
|
||||
@@ -55,7 +55,7 @@ public class AdapterLog extends RecyclerView.Adapter<AdapterLog.ViewHolder> {
|
||||
}
|
||||
|
||||
private void bindTo(EntityLog log) {
|
||||
tvTime.setText(DF.format(log.time));
|
||||
tvTime.setText(TF.format(log.time));
|
||||
tvData.setText(log.data);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user