@@ -107,10 +107,10 @@ private enum AutoScrollDirection {
107107 private boolean isAutoScrolling = false ;
108108 private Runnable autoScrollRunnable ;
109109 private final int mNewEventVerticalScrollDuration = 100 ;
110- private final int mAutoScrollInterval = 1200 ;
110+ private final int mAutoScrollInterval = 900 ;
111111 private final int mAutoScrollDuration = 300 ;
112- private final int mAutoScrollLeftThreshold = 150 ;
113- private final int mAutoScrollRightThreshold = 150 ;
112+ private final int mAutoScrollLeftThreshold = 100 ;
113+ private final int mAutoScrollRightThreshold = 100 ;
114114
115115 // Attributes and their default values.
116116 private int mHourHeight = 50 ;
@@ -1063,7 +1063,7 @@ top < getHeight() &&
10631063 mEventRects .get (i ).rectF = new RectF (left , top , right , bottom );
10641064 mEventBackgroundPaint .setColor (mEventRects .get (i ).event .getColor () == 0 ? mDefaultEventColor : mEventRects .get (i ).event .getColor ());
10651065 mEventBackgroundPaint .setShader (mEventRects .get (i ).event .getShader ());
1066- canvas .drawRoundRect (mEventRects .get (i ).rectF , 30 , 30 , mEventBackgroundPaint );
1066+ canvas .drawRoundRect (mEventRects .get (i ).rectF , mEventCornerRadius , mEventCornerRadius , mEventBackgroundPaint );
10671067 float topToUse = top ;
10681068 if (mEventRects .get (i ).event .getStartTime ().get (Calendar .HOUR_OF_DAY ) < mMinTime )
10691069 topToUse = mHourHeight * (getPassedMinutesInDay (mMinTime , 0 ) / 60 ) + getEventsTop ();
@@ -2572,7 +2572,7 @@ public void run() {
25722572 autoScrollHandler .postDelayed (this , mAutoScrollInterval );
25732573 }
25742574 };
2575- autoScrollHandler .post (autoScrollRunnable );
2575+ autoScrollHandler .postDelayed (autoScrollRunnable , mAutoScrollInterval );
25762576 }
25772577
25782578 // Call this when user leaves the critical area
0 commit comments