From 5652fdcd480ebfa33ce4f38bd7ab703867ee3f40 Mon Sep 17 00:00:00 2001 From: Peter Megyesi Date: Thu, 4 Jan 2018 22:16:02 +0000 Subject: [PATCH] eventPadding minor bug (was always set to default 8) fixed --- library/src/main/java/com/alamkanak/weekview/WeekView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/src/main/java/com/alamkanak/weekview/WeekView.java b/library/src/main/java/com/alamkanak/weekview/WeekView.java index b0c7ce348..39322e15c 100755 --- a/library/src/main/java/com/alamkanak/weekview/WeekView.java +++ b/library/src/main/java/com/alamkanak/weekview/WeekView.java @@ -444,7 +444,7 @@ public WeekView(Context context, AttributeSet attrs, int defStyleAttr) { mNewEventId = a.getInt(R.styleable.WeekView_newEventId, mNewEventId); mNewEventLengthInMinutes = a.getInt(R.styleable.WeekView_newEventLengthInMinutes, mNewEventLengthInMinutes); mNewEventTimeResolutionInMinutes = a.getInt(R.styleable.WeekView_newEventTimeResolutionInMinutes, mNewEventTimeResolutionInMinutes); - mEventPadding = a.getDimensionPixelSize(R.styleable.WeekView_hourSeparatorHeight, mEventPadding); + mEventPadding = a.getDimensionPixelSize(R.styleable.WeekView_eventPadding, mEventPadding); mHeaderColumnBackgroundColor = a.getColor(R.styleable.WeekView_headerColumnBackground, mHeaderColumnBackgroundColor); mDayNameLength = a.getInteger(R.styleable.WeekView_dayNameLength, mDayNameLength); mOverlappingEventGap = a.getDimensionPixelSize(R.styleable.WeekView_overlappingEventGap, mOverlappingEventGap);