1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-26 02:25: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)) {
activityDay = getContext().getString(R.string.activity_summary_yesterday);
} else {
activityDay = DateTimeUtils.formatDate(startTime);
activityDay = DateTimeUtils.formatDate(startTime, DateUtils.FORMAT_SHOW_WEEKDAY);
}
String activityTime = DateTimeUtils.formatTime(startTime.getHours(), startTime.getMinutes());
return String.format("%s%s %s", activityDay, separator, activityTime);