@@ -107,10 +107,10 @@ private enum AutoScrollDirection {
107
107
private boolean isAutoScrolling = false ;
108
108
private Runnable autoScrollRunnable ;
109
109
private final int mNewEventVerticalScrollDuration = 100 ;
110
- private final int mAutoScrollInterval = 1200 ;
110
+ private final int mAutoScrollInterval = 900 ;
111
111
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 ;
114
114
115
115
// Attributes and their default values.
116
116
private int mHourHeight = 50 ;
@@ -1063,7 +1063,7 @@ top < getHeight() &&
1063
1063
mEventRects .get (i ).rectF = new RectF (left , top , right , bottom );
1064
1064
mEventBackgroundPaint .setColor (mEventRects .get (i ).event .getColor () == 0 ? mDefaultEventColor : mEventRects .get (i ).event .getColor ());
1065
1065
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 );
1067
1067
float topToUse = top ;
1068
1068
if (mEventRects .get (i ).event .getStartTime ().get (Calendar .HOUR_OF_DAY ) < mMinTime )
1069
1069
topToUse = mHourHeight * (getPassedMinutesInDay (mMinTime , 0 ) / 60 ) + getEventsTop ();
@@ -2572,7 +2572,7 @@ public void run() {
2572
2572
autoScrollHandler .postDelayed (this , mAutoScrollInterval );
2573
2573
}
2574
2574
};
2575
- autoScrollHandler .post (autoScrollRunnable );
2575
+ autoScrollHandler .postDelayed (autoScrollRunnable , mAutoScrollInterval );
2576
2576
}
2577
2577
2578
2578
// Call this when user leaves the critical area
0 commit comments