Skip to content

Commit

Permalink
version 1.2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
hos3ein committed Aug 29, 2016
1 parent 5dd43e0 commit f2c46b0
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ public CalendarDay(long timeInMillis) {
}

public CalendarDay(PersianCalendar calendar) {
mPersianCalendar = calendar;
year = calendar.getPersianYear();
month = calendar.getPersianMonth();
day = calendar.getPersianDay();
Expand All @@ -186,15 +187,18 @@ public CalendarDay(int year, int month, int day) {
}

public void set(CalendarDay date) {
mPersianCalendar = date.mPersianCalendar;
year = date.year;
month = date.month;
day = date.day;
}

public void setDay(int year, int month, int day) {
this.year = year;
this.month = month;
this.day = day;
if(mPersianCalendar == null) {
mPersianCalendar = new PersianCalendar();
}
mPersianCalendar.setPersianDate(year, month, day);
setTime(mPersianCalendar.getTimeInMillis());
}

private void setTime(long timeInMillis) {
Expand Down

0 comments on commit f2c46b0

Please sign in to comment.