Skip to content

Commit

Permalink
Merge branch 'hotfix/1.1.3' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
mouredev committed Aug 17, 2021
2 parents 4977418 + 0e9f84f commit 659ef9b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ android {
applicationId "com.mouredev.twitimer"
minSdkVersion 23
targetSdkVersion 30
versionCode 7
versionName "1.1.2"
versionCode 8
versionName "1.1.3"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ fun Date.next(weekday: Weekday, considerToday: Boolean = false, referenceDate: D
if (considerToday && dayOfWeek == searchWeekdayIndex) {
if (referenceDate != null && duration != null && Date(referenceDate.time + (1000 * 60 * 60 * duration)) > this) {
return referenceDate
} else if (Date(this.time + (1000 * 60 * 60 * (duration ?: 0))) <= Date()) {
return this
} else if (save && this > Date()) {
} else if (Date() <= Date(this.time + (1000 * 60 * 60 * (duration ?: 0)))
|| Date(this.time + (1000 * 60 * 60 * (duration ?: 0))) <= Date()
|| save && this > Date()) {
return this
}
}
Expand Down

0 comments on commit 659ef9b

Please sign in to comment.