mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-09 18:48:51 -06:00
Add tests for HabitStreakView
This commit is contained in:
@@ -62,11 +62,16 @@ public class HabitStreakView extends View implements HabitDataView
|
||||
private boolean shouldShowLabels;
|
||||
private int maxStreakCount;
|
||||
|
||||
public HabitStreakView(Context context)
|
||||
{
|
||||
super(context);
|
||||
init();
|
||||
}
|
||||
|
||||
public HabitStreakView(Context context, AttributeSet attrs)
|
||||
{
|
||||
super(context, attrs);
|
||||
this.primaryColor = ColorHelper.palette[7];
|
||||
streaks = Collections.emptyList();
|
||||
init();
|
||||
}
|
||||
|
||||
@@ -83,6 +88,8 @@ public class HabitStreakView extends View implements HabitDataView
|
||||
createPaints();
|
||||
createColors();
|
||||
|
||||
streaks = Collections.emptyList();
|
||||
|
||||
dateFormat = DateFormat.getDateInstance(DateFormat.MEDIUM);
|
||||
dateFormat.setTimeZone(TimeZone.getTimeZone("GMT"));
|
||||
rect = new RectF();
|
||||
|
||||
Reference in New Issue
Block a user