diff options
author | lado <herrlado@gmail.com> | 2011-10-20 03:57:11 +0200 |
---|---|---|
committer | lado <herrlado@gmail.com> | 2011-10-20 03:57:11 +0200 |
commit | 971e707816a4eddd5adddb542bfb3075219f18f5 (patch) | |
tree | cd5b5ed5097be6afcf46faa0fe5b4964fce5d996 /vdrmanager/src | |
parent | 8540dca980a5c539bb2337e864ce22b1c5ff11d6 (diff) | |
download | vdr-manager-971e707816a4eddd5adddb542bfb3075219f18f5.tar.gz vdr-manager-971e707816a4eddd5adddb542bfb3075219f18f5.tar.bz2 |
be more generic
Diffstat (limited to 'vdrmanager/src')
-rw-r--r-- | vdrmanager/src/de/bjusystems/vdrmanager/app/VdrManagerApp.java | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/vdrmanager/src/de/bjusystems/vdrmanager/app/VdrManagerApp.java b/vdrmanager/src/de/bjusystems/vdrmanager/app/VdrManagerApp.java index a714845..6f19f36 100644 --- a/vdrmanager/src/de/bjusystems/vdrmanager/app/VdrManagerApp.java +++ b/vdrmanager/src/de/bjusystems/vdrmanager/app/VdrManagerApp.java @@ -8,6 +8,7 @@ import android.app.Application; import de.bjusystems.vdrmanager.data.Channel; import de.bjusystems.vdrmanager.data.Epg; import de.bjusystems.vdrmanager.data.EpgSearchParams; +import de.bjusystems.vdrmanager.data.Event; import de.bjusystems.vdrmanager.data.Timer; public class VdrManagerApp extends Application { @@ -19,16 +20,17 @@ public class VdrManagerApp extends Application { } private EpgListState epgListState; - private Epg currentEvent; + private Event currentEvent; private Timer currentTimer; private Channel currentChannel; - private List<Epg> currentEpgList = new ArrayList<Epg>(); - public List<Epg> getCurrentEpgList() { + private List<Event> currentEpgList = new ArrayList<Event>(); + + public List<Event> getCurrentEpgList() { return currentEpgList; } - public void setCurrentEpgList(List<Epg> currentEpgList) { + public void setCurrentEpgList(List<Event> currentEpgList) { this.currentEpgList = currentEpgList; } @@ -51,18 +53,18 @@ public class VdrManagerApp extends Application { this.epgListState = EpgListState.EPG_TIME; } - public Epg getCurrentEvent() { + public Event getCurrentEvent() { return currentEvent; } - public void setCurrentEvent(final Epg currentEvent) { + public void setCurrentEvent(final Event currentEvent) { clear(); this.currentEvent = currentEvent; - if (currentEvent.getTimer() != null) { - this.currentTimer = currentEvent.getTimer(); - } else { - this.currentTimer = new Timer(currentEvent); - } + //if (currentEvent.getTimer() != null) { + //this.currentTimer = currentEvent.getTimer(); + //} else { + //this.currentTimer = new Timer(currentEvent); + //} } public Timer getCurrentTimer() { |