summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlado <herrlado@gmail.com>2014-02-14 13:58:52 +0100
committerlado <herrlado@gmail.com>2014-02-14 13:58:52 +0100
commit67f129209ba6dea71e0576a84bd6580e923975b0 (patch)
treeba72a3a3a69ffaf237fb622a075fcd607315bfc5
parent0e2a6560998e8c78fc28ca78938bb5913674d280 (diff)
downloadvdr-manager-67f129209ba6dea71e0576a84bd6580e923975b0.tar.gz
vdr-manager-67f129209ba6dea71e0576a84bd6580e923975b0.tar.bz2
VPS
-rw-r--r--vdrmanager/src/de/bjusystems/vdrmanager/gui/TimerEventAdapter.java31
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