mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-02-17 04:10:45 +01:00
limit some weekly view event titles to 1 line
This commit is contained in:
parent
90dd97b4e6
commit
4141b94a6a
@ -568,7 +568,12 @@ class WeekFragment : Fragment(), WeeklyCalendar {
|
||||
|
||||
week_event_label.apply {
|
||||
setTextColor(textColor)
|
||||
maxLines = if (event.isTask()) 1 else 3
|
||||
maxLines = if (event.isTask() || event.startTS == event.endTS) {
|
||||
1
|
||||
} else {
|
||||
3
|
||||
}
|
||||
|
||||
text = event.title
|
||||
checkViewStrikeThrough(event.isTaskCompleted())
|
||||
contentDescription = text
|
||||
|
Loading…
x
Reference in New Issue
Block a user