Show elevation on ExpandedAlarmViewHolder, changed name of AlarmViewHolder to CollapsedAlarmViewHolder

This commit is contained in:
Phillip Hsu
2016-07-31 20:28:08 -07:00
parent 02db488065
commit 9561388425
5 changed files with 178 additions and 155 deletions
@@ -27,6 +27,7 @@ public class DaysOfWeek implements DaysOfWeekHelper {
private static final int[] LABELS_RES = new int[NUM_DAYS];
static {
// TODO: use `new DateFormatSymbols().getShortWeekdays()` to set texts
LABELS_RES[SUNDAY] = R.string.sun;
LABELS_RES[MONDAY] = R.string.mon;
LABELS_RES[TUESDAY] = R.string.tue;
@@ -25,13 +25,13 @@ public class CollapsedAlarmViewHolder extends BaseAlarmViewHolder implements Ala
@Deprecated // TODO: Delete this, the only usage is from AlarmsAdapter (SortedList), which is not used anymore.
public CollapsedAlarmViewHolder(ViewGroup parent, OnListItemInteractionListener<Alarm> listener) {
super(parent, R.layout.item_alarm, listener, null);
super(parent, R.layout.item_collapsed_alarm, listener, null);
mCountdown.setOnTickListener(this);
}
public CollapsedAlarmViewHolder(ViewGroup parent, OnListItemInteractionListener<Alarm> listener,
AlarmController alarmController) {
super(parent, R.layout.item_alarm, listener, alarmController);
super(parent, R.layout.item_collapsed_alarm, listener, alarmController);
mCountdown.setOnTickListener(this);
}