Releases: thellmund/Android-Week-View
Releases · thellmund/Android-Week-View
Release 5.3.2
Release 5.3.1
- Updated: WeekView now shortens events that are outside custom time ranges.
- Fixed: WeekView didn’t properly remove deleted events when using a
PagingAdapter
. - Fixed: WeekView crashed when using a
windowBackground
that wasn’t a color. - Fixed: WeekView crashed when dealing with certain time ranges.
- Fixed: WeekView completely omitted the subtitle when it didn’t fit.
Release 5.3.0
- Breaking: The deprecation level of several properties has been increased from
warning
toerror
. - Fixed: WeekView no longer ignores uses day background colors set in code or XML.
Release 5.2.4
- Changed: The
jsr310
module now uses core library desugaring, which allows it to be used starting at API 21 instead of API 26.
Release 5.2.3
- Changed: The
emoji
module now initializes automatically on start-up. CallingweekView.enableEmojiProcessing()
is no longer necessary. - Fixed: WeekView no longer crashes when accessing
firstVisibleDate
andlastVisibleDate
before the initial render. - Fixed: WeekView now calls
adapter.onRangeChanged()
reliably again on API 25 and below.
Thanks for contributing, RemiNV!
Release 5.2.2
- Changed:
firstVisibleHour
now returns the first partially visible hour as anInt
and takes into accountminHour
. To retrieve the first fully visible hour, you can usefirstFullyVisibleHour
. - Fixed: WeekView now only calls
onRangeChanged()
when a scroll has finished. Previously, it would call it for every date that it scrolled past. - Fixed: WeekView now correctly preserves the first visible date when switching the number of visible days.
- Fixed: WeekView now scrolls correctly when used in the Fragment of a ViewPager.
Thanks to everyone who reported issues!
Release 5.2.1
This release fixes a build issue introduced in the last version.
Release 5.2.0
- New: WeekView can now display blocked times. To enable this,
WeekViewEvent<T>
was replaced by the sealed classWeekViewEntity
, which can be of typeEvent<T>
orBlockedTime
. Refer to the wiki to get started. - Changed:
WeekViewDisplayable<T>
is now deprecated. Now, submit elements of typeT
directly to WeekView’s adapter by callingadapter.submitList(List<T>)
. Then, implementonCreateEntity()
in your adapter to create aWeekViewEntity
from your object. - Changed: The methods for scrolling to specific dates and times have been streamlined. You should now use
scrollToDate(date: Calendar)
,scrollToTime(hour: Int, minute: Int)
, andscrollToDateTime(dateTime: Calendar)
. - Changed: WeekView no longer supports emojis by default. To add emoji support, you must add a dependency to
com.github.thellmund.Android-Week-View:emoji:x.y.z
and callweekView.enableEmojiProcessing()
before submitting events. - Fixed: WeekView no longer forgets to call
onEmptyViewLongClick()
if an empty area in the calendar was long-clicked.
Release 5.0.3
- Fixed: WeekView no longer ignores
goToCurrentTime()
if it’s already scrolled to the current date, but not the current time.
Thanks for reporting this, @FeFelten!
Release 5.0.2
- Changed: WeekView no longer throws an
IllegalArgumentException
whengoToHour()
is called with an hour outside the accepted time range. Instead, it coerces the provided argument into the range ofminHour
andmaxHour
. - Fixed: WeekView no longer renders very short events incorrectly.
- Fixed: WeekView no longer scrolls to the wrong time when calling
goToCurrentTime()
.