Skip to content

Commit

Permalink
修改calendarDate的modifyMonth方法
Browse files Browse the repository at this point in the history
  • Loading branch information
骆大峰 committed Jul 5, 2017
1 parent 5281fb1 commit ebc35ed
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ public CalendarDate modifyMonth(int offset){
result.setYear(this.year + (addToMonth - 1) / 12);
result.setMonth(addToMonth % 12 == 0 ? 12: addToMonth % 12);
}else {
result.setYear(this.year);
result.setMonth(addToMonth);
}
}else{
Expand Down
1 change: 0 additions & 1 deletion calendar/src/main/java/com/ldf/calendar/view/DayView.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ public void drawDay(Canvas canvas , Day day) {
int saveId = canvas.save();
canvas.translate(day.getPosCol() * getMeasuredWidth(),
day.getPosRow() * getMeasuredHeight());
Log.e("ldf","posY = " + day.getPosCol());
draw(canvas);
canvas.restoreToCount(saveId);
}
Expand Down

0 comments on commit ebc35ed

Please sign in to comment.