mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-07 01:28:52 -06:00
Add tests for HabitFrequencyView
This commit is contained in:
@@ -66,12 +66,17 @@ public class HabitFrequencyView extends ScrollableDataView implements HabitDataV
|
||||
private HashMap<Long, Integer[]> frequency;
|
||||
private String wdays[];
|
||||
|
||||
public HabitFrequencyView(Context context)
|
||||
{
|
||||
super(context);
|
||||
init();
|
||||
}
|
||||
|
||||
public HabitFrequencyView(Context context, AttributeSet attrs)
|
||||
{
|
||||
super(context, attrs);
|
||||
this.primaryColor = ColorHelper.palette[7];
|
||||
this.frequency = new HashMap<>();
|
||||
wdays = DateHelper.getShortDayNames();
|
||||
init();
|
||||
}
|
||||
|
||||
@@ -89,6 +94,8 @@ public class HabitFrequencyView extends ScrollableDataView implements HabitDataV
|
||||
createPaints();
|
||||
createColors();
|
||||
|
||||
wdays = DateHelper.getShortDayNames();
|
||||
|
||||
dfMonth = new SimpleDateFormat("MMM", Locale.getDefault());
|
||||
dfYear = new SimpleDateFormat("yyyy", Locale.getDefault());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user