mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 09:08:52 -06:00
Implement additional UI tests
This commit is contained in:
@@ -33,8 +33,6 @@ public abstract class ScoreList implements Iterable<Score>
|
||||
|
||||
protected ModelObservable observable;
|
||||
|
||||
protected Double todayValue = null;
|
||||
|
||||
/**
|
||||
* Creates a new ScoreList for the given habit.
|
||||
* <p>
|
||||
@@ -71,8 +69,7 @@ public abstract class ScoreList implements Iterable<Score>
|
||||
*/
|
||||
public double getTodayValue()
|
||||
{
|
||||
if(todayValue == null) todayValue = getValue(DateUtils.getStartOfToday());
|
||||
return todayValue;
|
||||
return getValue(DateUtils.getStartOfToday());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -78,7 +78,6 @@ public class MemoryScoreList extends ScoreList
|
||||
|
||||
list.removeAll(discard);
|
||||
|
||||
todayValue = null;
|
||||
getObservable().notifyListeners();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user