locales in date: keep default

This commit is contained in:
Milos Kozak 2016-06-27 20:38:38 +02:00
parent b6970fb5e7
commit 0397c98eb7

View file

@ -249,9 +249,8 @@ public class TempBasalsFragment extends Fragment implements PluginBase, TempBasa
@Override
public void onBindViewHolder(TempBasalsViewHolder holder, int position) {
// TODO: implement locales
DateFormat df = DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.SHORT, new Locale("cs", "CZ"));
DateFormat enddf = DateFormat.getTimeInstance(DateFormat.SHORT, new Locale("cs", "CZ"));
DateFormat df = DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.SHORT);
DateFormat enddf = DateFormat.getTimeInstance(DateFormat.SHORT);
TempBasal tempBasal = tempBasals.get(position);
if (tempBasal.timeEnd != null) {
holder.date.setText(df.format(tempBasal.timeStart) + " - " + enddf.format(tempBasals.get(position).timeEnd));