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