mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-17 19:29:02 +00:00
fix crash: getEveryX() can be zero
This commit is contained in:
parent
855ce2024b
commit
0935aa5e31
1 changed files with 4 additions and 0 deletions
|
|
@ -480,6 +480,10 @@ public class Task extends BaseModel {
|
|||
}
|
||||
|
||||
if (this.getFrequency().equals(FREQUENCY_DAILY)) {
|
||||
if(getEveryX() == 0){
|
||||
return false;
|
||||
}
|
||||
|
||||
Calendar startDate = new GregorianCalendar();
|
||||
if (this.getStartDate() != null) {
|
||||
startDate.setTime(this.getStartDate());
|
||||
|
|
|
|||
Loading…
Reference in a new issue