diff options
-rw-r--r-- | vdrmanager/src/de/bjusystems/vdrmanager/gui/TimerEventAdapter.java | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/vdrmanager/src/de/bjusystems/vdrmanager/gui/TimerEventAdapter.java b/vdrmanager/src/de/bjusystems/vdrmanager/gui/TimerEventAdapter.java new file mode 100644 index 0000000..0c39f81 --- /dev/null +++ b/vdrmanager/src/de/bjusystems/vdrmanager/gui/TimerEventAdapter.java @@ -0,0 +1,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); + } + } +}
\ No newline at end of file |