From 67f129209ba6dea71e0576a84bd6580e923975b0 Mon Sep 17 00:00:00 2001
From: lado <herrlado@gmail.com>
Date: Fri, 14 Feb 2014 13:58:52 +0100
Subject: VPS

---
 .../vdrmanager/gui/TimerEventAdapter.java          | 31 ++++++++++++++++++++++
 1 file changed, 31 insertions(+)
 create mode 100644 vdrmanager/src/de/bjusystems/vdrmanager/gui/TimerEventAdapter.java

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
-- 
cgit v1.2.3