Show elevation on ExpandedAlarmViewHolder, changed name of AlarmViewHolder to CollapsedAlarmViewHolder
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user