Skip to content

Commit

Permalink
[Fix] the calendar time calculation problem. Close #3
Browse files Browse the repository at this point in the history
  • Loading branch information
CaMnter committed Apr 6, 2017
1 parent 85e5674 commit 149e0a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -602,8 +602,8 @@ final void stopThread() {

private int checkCalendarHour(final long millisInFuture, int calendarHour) {
final int days = (int) (millisInFuture / ONE_DAY);
if (days > 1) {
calendarHour += (days - 1) * 24;
if (days >= 1) {
calendarHour += days * 24;
}
return calendarHour;
}
Expand Down
2 changes: 1 addition & 1 deletion samples/src/main/res/layout/activity_setting.xml
Expand Up @@ -33,7 +33,7 @@
resAuto:easyCountBackgroundColor="#ffdddddd"
resAuto:easyCountColonColor="#ffdddddd"
resAuto:easyCountColonSize="20sp"
resAuto:easyCountHour="6"
resAuto:easyCountHour="26"
resAuto:easyCountMinute="6"
resAuto:easyCountRectHeight="34dp"
resAuto:easyCountRectRadius="5dp"
Expand Down

0 comments on commit 149e0a3

Please sign in to comment.