1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-27 02:55:50 +01:00

Display weekday on sports activities

This commit is contained in:
José Rebelo 2024-10-01 20:50:48 +01:00
parent e1c245cdbd
commit 9d03d0d98e

View File

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