Skip to content

Commit

Permalink
remove small race condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Lionel Mamane committed Oct 6, 2023
1 parent 5bebfdc commit bf48961
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class CalendarAppWidgetModel {
public CalendarAppWidgetModel(Context context, String timeZone) {
mNow = System.currentTimeMillis();
Time time = new Time(timeZone);
time.set(System.currentTimeMillis()); // This is needed for gmtoff to be set
time.set(mNow); // This is needed for gmtoff to be set
mTodayJulianDay = Time.getJulianDay(mNow, time.getGmtOffset());
mMaxJulianDay = mTodayJulianDay + CalendarAppWidgetService.MAX_DAYS - 1;
mEventInfos = new ArrayList<EventInfo>(50);
Expand Down

0 comments on commit bf48961

Please sign in to comment.