mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-26 10:35:50 +01:00
Display weekday on sports activities
This commit is contained in:
parent
e1c245cdbd
commit
9d03d0d98e
@ -265,7 +265,7 @@ public class ActivitySummariesAdapter extends AbstractActivityListingAdapter<Bas
|
|||||||
} else if (DateTimeUtils.isYesterday(startTime)) {
|
} else if (DateTimeUtils.isYesterday(startTime)) {
|
||||||
activityDay = getContext().getString(R.string.activity_summary_yesterday);
|
activityDay = getContext().getString(R.string.activity_summary_yesterday);
|
||||||
} else {
|
} else {
|
||||||
activityDay = DateTimeUtils.formatDate(startTime);
|
activityDay = DateTimeUtils.formatDate(startTime, DateUtils.FORMAT_SHOW_WEEKDAY);
|
||||||
}
|
}
|
||||||
String activityTime = DateTimeUtils.formatTime(startTime.getHours(), startTime.getMinutes());
|
String activityTime = DateTimeUtils.formatTime(startTime.getHours(), startTime.getMinutes());
|
||||||
return String.format("%s%s %s", activityDay, separator, activityTime);
|
return String.format("%s%s %s", activityDay, separator, activityTime);
|
||||||
|
Loading…
Reference in New Issue
Block a user