Minor change to rename a variable in UpdateSummaryAsync.

This commit is contained in:
Karthik Elangovan 2015-09-22 14:55:12 -07:00
Родитель 64100c744a
Коммит 195fdfe6ea
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -304,11 +304,11 @@ namespace ActivitiesExample
if (history.Count == 0 || history[0].Timestamp > startDate)
{
ActivitySensorReading currentReading = await GetActivityAtAsync(startDate);
if (currentReading != null)
ActivitySensorReading firstReading = await GetActivityAtAsync(startDate);
if (firstReading != null)
{
List<ActivitySensorReading> finalHistory = new List<ActivitySensorReading>(history);
finalHistory.Insert(0, currentReading);
finalHistory.Insert(0, firstReading);
history = finalHistory.AsReadOnly();
}
}