Prevent overwrite of arrival times

This commit is contained in:
HeshamTB 2020-12-07 05:15:36 +03:00
parent 72eba421db
commit 6648832d50
Signed by: Hesham
GPG Key ID: 74876157D199B09E

View File

@ -91,7 +91,7 @@ public class MakkahCity {
}
}
}
if (isAllArrived()) allArrivedToArafatTime = (Date)currenttimeManager.getCurrentTime().clone();
if (isAllArrived() && allArrivedToArafatTime == null) allArrivedToArafatTime = (Date)currenttimeManager.getCurrentTime().clone();
firstDayTimeMan.step(Calendar.MINUTE, 1);
}
@ -147,7 +147,7 @@ public class MakkahCity {
}
}
}
if (isAllArrived()) allArrivedToHotelsTime = (Date)currenttimeManager.getCurrentTime().clone();
if (isAllArrived() && allArrivedToHotelsTime == null) allArrivedToHotelsTime = (Date)currenttimeManager.getCurrentTime().clone();
lastDayTimeMan.step(Calendar.MINUTE, 1);
}
//When done show menu to analyze. Exit from menu too.