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(
137137 ) {
138138 val bounds = eventChip.bounds
139139
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
145141
146142 val verticalOffset = if (eventChip.event.isAllDay) {
147143 (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 {
4343
4444internal fun ViewState.getTextPaint (event : ResolvedWeekViewEntity ): TextPaint {
4545 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
4747
4848 val textColor = event.style.textColor
4949 if (textColor != null ) {
You can’t perform that action at this time.
0 commit comments