@@ -162,7 +162,7 @@ public boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX, float d
162
162
163
163
switch (mCurrentScrollDirection ) {
164
164
case NONE : {
165
- // allow scrolling only in one direction
165
+ // Allow scrolling only in one direction.
166
166
if (Math .abs (distanceX ) > Math .abs (distanceY )) {
167
167
if (distanceX > 0 ) {
168
168
mCurrentScrollDirection = Direction .LEFT ;
@@ -175,14 +175,14 @@ public boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX, float d
175
175
break ;
176
176
}
177
177
case LEFT : {
178
- // change direction if there was enough change
178
+ // Change direction if there was enough change.
179
179
if (Math .abs (distanceX ) > Math .abs (distanceY ) && (distanceX < -mScaledTouchSlop )) {
180
180
mCurrentScrollDirection = Direction .RIGHT ;
181
181
}
182
182
break ;
183
183
}
184
184
case RIGHT : {
185
- // change direction if there was enough change
185
+ // Change direction if there was enough change.
186
186
if (Math .abs (distanceX ) > Math .abs (distanceY ) && (distanceX > mScaledTouchSlop )) {
187
187
mCurrentScrollDirection = Direction .LEFT ;
188
188
}
@@ -486,7 +486,7 @@ private void drawTimeColumnAndAxes(Canvas canvas) {
486
486
// Draw the background color for the header column.
487
487
canvas .drawRect (0 , mHeaderTextHeight + mHeaderRowPadding * 2 , mHeaderColumnWidth , getHeight (), mHeaderColumnBackgroundPaint );
488
488
489
- // Clip to paint in left column only
489
+ // Clip to paint in left column only.
490
490
canvas .clipRect (0 , mHeaderTextHeight + mHeaderRowPadding * 2 , mHeaderColumnWidth , getHeight (), Region .Op .REPLACE );
491
491
492
492
for (int i = 0 ; i < 24 ; i ++) {
@@ -578,7 +578,7 @@ else if (mNewHourHeight > mMaxHourHeight)
578
578
}
579
579
}
580
580
581
- // Clip to paint events only
581
+ // Clip to paint events only.
582
582
canvas .clipRect (mHeaderColumnWidth , mHeaderTextHeight + mHeaderRowPadding * 2 + mHeaderMarginBottom + mTimeTextHeight /2 , getWidth (), getHeight (), Region .Op .REPLACE );
583
583
584
584
// Iterate through each day.
@@ -667,7 +667,7 @@ else if (day.before(today)) {
667
667
}
668
668
669
669
670
- // Clip to paint header row only
670
+ // Clip to paint header row only.
671
671
canvas .clipRect (mHeaderColumnWidth , 0 , getWidth (), mHeaderTextHeight + mHeaderRowPadding * 2 , Region .Op .REPLACE );
672
672
673
673
// Draw the header background.
@@ -1740,8 +1740,8 @@ public void computeScroll() {
1740
1740
}
1741
1741
1742
1742
/**
1743
- * check if scrolling should be stopped
1744
- * @return true if scrolling should be stopped before reaching the end of animation
1743
+ * Check if scrolling should be stopped.
1744
+ * @return true if scrolling should be stopped before reaching the end of animation.
1745
1745
*/
1746
1746
private boolean forceFinishScroll () {
1747
1747
if (Build .VERSION .SDK_INT >= Build .VERSION_CODES .ICE_CREAM_SANDWICH ) {
0 commit comments