mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
tweak call footer's date format
This commit is contained in:
@@ -96,7 +96,7 @@ public class ConversationItemFooter extends LinearLayout {
|
||||
dateView.forceLayout();
|
||||
Context context = getContext();
|
||||
String date = dcMsg.getType() == DcMsg.DC_MSG_CALL?
|
||||
DateUtils.getFormattedCallTime(context, dcMsg.getTimestamp())
|
||||
DateUtils.getExtendedTimeSpanString(context, dcMsg.getTimestamp())
|
||||
: DateUtils.getExtendedRelativeTimeSpanString(context, dcMsg.getTimestamp());
|
||||
if (callDuration > 0) {
|
||||
String duration = DateUtils.getFormattedCallDuration(context, callDuration);
|
||||
|
||||
@@ -128,10 +128,6 @@ public class DateUtils extends android.text.format.DateUtils {
|
||||
return c.getResources().getQuantityString(R.plurals.n_minutes_ext, mins, mins);
|
||||
}
|
||||
|
||||
public static String getFormattedCallTime(final Context c, final long timestamp) {
|
||||
return getFormattedDateTime(timestamp, DateFormat.is24HourFormat(c)? "HH:mm" : "hh:mm a");
|
||||
}
|
||||
|
||||
public static String getFormattedTimespan(Context c, int timestamp) {
|
||||
int mins = timestamp / (1000 * 60);
|
||||
if (mins / 60 == 0) {
|
||||
|
||||
Reference in New Issue
Block a user