mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-04-14 19:56:32 +00:00
fix crash
This commit is contained in:
parent
9892c859c6
commit
7df5294687
1 changed files with 3 additions and 0 deletions
|
|
@ -366,6 +366,9 @@ open class Task : RealmObject, BaseMainObject, Parcelable, BaseTask {
|
|||
var startDate = this.startDate?.toInstant()?.atZone(ZoneId.systemDefault()) ?: return null
|
||||
val frequency = this.frequency ?: return null
|
||||
val everyX = this.everyX ?: 1
|
||||
if (everyX == 0) {
|
||||
return null
|
||||
}
|
||||
val repeatDays = this.repeat
|
||||
startDate = startDate.withHour(reminderTime.hour).withMinute(reminderTime.minute)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue