File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed
core/src/main/java/com/alamkanak/weekview Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -137,11 +137,7 @@ internal class EventChipDrawer(
137
137
) {
138
138
val bounds = eventChip.bounds
139
139
140
- val horizontalOffset = if (viewState.isLtr) {
141
- bounds.left + viewState.eventPaddingHorizontal
142
- } else {
143
- bounds.right - viewState.eventPaddingHorizontal
144
- }
140
+ val horizontalOffset = bounds.left + viewState.eventPaddingHorizontal
145
141
146
142
val verticalOffset = if (eventChip.event.isAllDay) {
147
143
(bounds.height() - textLayout.height) / 2f
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ internal fun CharSequence.semibold() = SpannableString(this).apply {
43
43
44
44
internal fun ViewState.getTextPaint (event : ResolvedWeekViewEntity ): TextPaint {
45
45
val textPaint = TextPaint (if (event.isAllDay) allDayEventTextPaint else eventTextPaint)
46
- textPaint.textAlign = if (isLtr) Paint .Align .LEFT else Paint . Align . RIGHT
46
+ textPaint.textAlign = Paint .Align .LEFT
47
47
48
48
val textColor = event.style.textColor
49
49
if (textColor != null ) {
You can’t perform that action at this time.
0 commit comments