blob: 0c39f819f5c632be1d4bab58ea57187b5db96b83 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
package de.bjusystems.vdrmanager.gui;
import android.content.Context;
import android.view.View;
import de.bjusystems.vdrmanager.R;
import de.bjusystems.vdrmanager.data.EventListItem;
import de.bjusystems.vdrmanager.data.Timer;
public class TimerEventAdapter extends TimeEventAdapter {
public TimerEventAdapter(final Context context) {
super(context);
}
public void sortItems() {
// sortItemsByChannel();
}
@Override
protected void handleState(EventListItemHolder itemHolder,
EventListItem item) {
super.handleState(itemHolder, item);
Timer r = (Timer) item.getEvent();
if (r.isVps()) {
itemHolder.other.setVisibility(View.VISIBLE);
itemHolder.other.setImageResource(R.drawable.timer_vps);
} else {
itemHolder.other.setVisibility(View.GONE);
}
}
}
|