Workaround 12/24 hour Android 5.1/6 bug

This commit is contained in:
M66B
2019-04-19 13:08:30 +02:00
parent 2f1c37445b
commit ad6c4cb7ad
7 changed files with 52 additions and 22 deletions

View File

@@ -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);
}
}