|
|
@ -1226,7 +1226,7 @@ public class FragmentMessages extends FragmentEx {
|
|
|
|
long duration = (hours + days * 24) * HOUR_MS;
|
|
|
|
long duration = (hours + days * 24) * HOUR_MS;
|
|
|
|
long time = now + duration;
|
|
|
|
long time = now + duration;
|
|
|
|
DateFormat df = SimpleDateFormat.getDateTimeInstance(SimpleDateFormat.MEDIUM, SimpleDateFormat.SHORT);
|
|
|
|
DateFormat df = SimpleDateFormat.getDateTimeInstance(SimpleDateFormat.MEDIUM, SimpleDateFormat.SHORT);
|
|
|
|
tvTime.setText(df.format(time));
|
|
|
|
tvTime.setText(new SimpleDateFormat("E").format(time) + " " + df.format(time));
|
|
|
|
tvTime.setVisibility(duration == 0 ? View.INVISIBLE : View.VISIBLE);
|
|
|
|
tvTime.setVisibility(duration == 0 ? View.INVISIBLE : View.VISIBLE);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|