Skip to content

Commit 715c605

Browse files
committed
Update comments and support library
1 parent 769f027 commit 715c605

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

library/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ android {
1515
}
1616

1717
dependencies {
18-
compile 'com.android.support:appcompat-v7:23.0.1'
18+
compile 'com.android.support:appcompat-v7:23.1.1'
1919
}
2020

2121
apply from: 'https://raw.github.com/chrisbanes/gradle-mvn-push/master/gradle-mvn-push.gradle'

library/src/main/java/com/alamkanak/weekview/WeekView.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX, float d
162162

163163
switch (mCurrentScrollDirection) {
164164
case NONE: {
165-
// allow scrolling only in one direction
165+
// Allow scrolling only in one direction.
166166
if (Math.abs(distanceX) > Math.abs(distanceY)) {
167167
if (distanceX > 0) {
168168
mCurrentScrollDirection = Direction.LEFT;
@@ -175,14 +175,14 @@ public boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX, float d
175175
break;
176176
}
177177
case LEFT: {
178-
// change direction if there was enough change
178+
// Change direction if there was enough change.
179179
if (Math.abs(distanceX) > Math.abs(distanceY) && (distanceX < -mScaledTouchSlop)) {
180180
mCurrentScrollDirection = Direction.RIGHT;
181181
}
182182
break;
183183
}
184184
case RIGHT: {
185-
// change direction if there was enough change
185+
// Change direction if there was enough change.
186186
if (Math.abs(distanceX) > Math.abs(distanceY) && (distanceX > mScaledTouchSlop)) {
187187
mCurrentScrollDirection = Direction.LEFT;
188188
}
@@ -486,7 +486,7 @@ private void drawTimeColumnAndAxes(Canvas canvas) {
486486
// Draw the background color for the header column.
487487
canvas.drawRect(0, mHeaderTextHeight + mHeaderRowPadding * 2, mHeaderColumnWidth, getHeight(), mHeaderColumnBackgroundPaint);
488488

489-
// Clip to paint in left column only
489+
// Clip to paint in left column only.
490490
canvas.clipRect(0, mHeaderTextHeight + mHeaderRowPadding * 2, mHeaderColumnWidth, getHeight(), Region.Op.REPLACE);
491491

492492
for (int i = 0; i < 24; i++) {
@@ -578,7 +578,7 @@ else if (mNewHourHeight > mMaxHourHeight)
578578
}
579579
}
580580

581-
// Clip to paint events only
581+
// Clip to paint events only.
582582
canvas.clipRect(mHeaderColumnWidth, mHeaderTextHeight + mHeaderRowPadding * 2 + mHeaderMarginBottom + mTimeTextHeight/2, getWidth(), getHeight(), Region.Op.REPLACE);
583583

584584
// Iterate through each day.
@@ -667,7 +667,7 @@ else if (day.before(today)) {
667667
}
668668

669669

670-
// Clip to paint header row only
670+
// Clip to paint header row only.
671671
canvas.clipRect(mHeaderColumnWidth, 0, getWidth(), mHeaderTextHeight + mHeaderRowPadding * 2, Region.Op.REPLACE);
672672

673673
// Draw the header background.
@@ -1740,8 +1740,8 @@ public void computeScroll() {
17401740
}
17411741

17421742
/**
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.
17451745
*/
17461746
private boolean forceFinishScroll() {
17471747
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) {

0 commit comments

Comments
 (0)