Skip to content

Commit

Permalink
修复返回今天bug
Browse files Browse the repository at this point in the history
  • Loading branch information
huanghaibin committed Aug 30, 2018
1 parent 42c86b9 commit 8ff815a
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 9 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ Android上一个优雅、高度自定义、性能高效的日历控件,完美

### Gradle
```
compile 'com.haibin:calendarview:3.4.3'
compile 'com.haibin:calendarview:3.4.4'
```
```
<dependency>
<groupId>com.haibin</groupId>
<artifactId>calendarview</artifactId>
<version>3.4.3</version>
<version>3.4.4</version>
<type>pom</type>
</dependency>
```
Expand Down
4 changes: 2 additions & 2 deletions README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ This widget has obvious advantages of memory and efficiency, adapt to many scene

### Gradle
```
compile 'com.haibin:calendarview:3.4.3'
compile 'com.haibin:calendarview:3.4.4'
```
```
<dependency>
<groupId>com.haibin</groupId>
<artifactId>calendarview</artifactId>
<version>3.4.3</version>
<version>3.4.4</version>
<type>pom</type>
</dependency>
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ public void onClick(DialogInterface dialog, int which) {
break;
case 4:
mCalendarView.scrollToCurrent(true);
//mCalendarView.scrollToCalendar(2018,8,30);
break;
case 5:
mCalendarView.setRange(mCalendarView.getCurYear(), mCalendarView.getCurMonth(), 6,
Expand Down
4 changes: 2 additions & 2 deletions calendarview/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ android {
minSdkVersion 15
//noinspection OldTargetApi
targetSdkVersion 23
versionCode 343
versionName "3.4.3"
versionCode 344
versionName "3.4.4"

testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ void scrollToCurrent(boolean smoothScroll) {
int position = CalendarUtil.getWeekFromCalendarStartWithMinCalendar(mDelegate.getCurrentDay(),
mDelegate.getMinYear(),
mDelegate.getMinYearMonth(),
mDelegate.getMaxYearDay(),
mDelegate.getMinYearDay(),
mDelegate.getWeekStart()) - 1;
int curItem = getCurrentItem();
if (curItem == position) {
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ org.gradle.jvmargs=-Xmx1536m
POM_BINTRAY_NAME=com.haibin:calendarview
POM_DESCRIPTION=A very good CalendarView for Android.
POM_ARTIFACT_ID=calendarview
VERSION_NAME=3.4.3
VERSION_CODE=3.4.3
VERSION_NAME=3.4.4
VERSION_CODE=3.4.4
POM_BINTRAY_PRPO=maven
POM_PACKAGING=aar
POM_NAME=calendarview
Expand Down

0 comments on commit 8ff815a

Please sign in to comment.