summaryrefslogtreecommitdiff
path: root/vdrmanager
diff options
context:
space:
mode:
Diffstat (limited to 'vdrmanager')
-rw-r--r--vdrmanager/src/de/bjusystems/vdrmanager/gui/EventEpgListActivity.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/vdrmanager/src/de/bjusystems/vdrmanager/gui/EventEpgListActivity.java b/vdrmanager/src/de/bjusystems/vdrmanager/gui/EventEpgListActivity.java
index 8557f20..3256343 100644
--- a/vdrmanager/src/de/bjusystems/vdrmanager/gui/EventEpgListActivity.java
+++ b/vdrmanager/src/de/bjusystems/vdrmanager/gui/EventEpgListActivity.java
@@ -201,8 +201,8 @@ public class EventEpgListActivity extends BaseTimerEditActivity<Epg> implements
public void clearCache() {
getCache().clear();
- CACHE.remove(currentChannel);
- NEXT_REFRESH.remove(currentChannel);
+ CACHE.remove(currentChannel.getId());
+ NEXT_REFRESH.remove(currentChannel.getId());
}
private boolean useCache() {
@@ -211,13 +211,13 @@ public class EventEpgListActivity extends BaseTimerEditActivity<Epg> implements
return false;
}
- ArrayList<Epg> cachedChannel = CACHE.get(currentChannel) ;
+ ArrayList<Epg> cachedChannel = CACHE.get(currentChannel.getId()) ;
if (cachedChannel == null) {
return false;
}
- Date nextForceCache = NEXT_REFRESH.get(currentChannel);
+ Date nextForceCache = NEXT_REFRESH.get(currentChannel.getId());
if (nextForceCache == null) {
return false;
@@ -285,7 +285,7 @@ public class EventEpgListActivity extends BaseTimerEditActivity<Epg> implements
private static final ArrayList<Epg> EMPTY = new ArrayList<Epg>(0);
private ArrayList<Epg> getCache() {
- ArrayList<Epg> arrayList = CACHE.get(currentChannel);
+ ArrayList<Epg> arrayList = CACHE.get(currentChannel.getId());
if (arrayList == null) {
return EMPTY;
}
@@ -398,7 +398,7 @@ public class EventEpgListActivity extends BaseTimerEditActivity<Epg> implements
protected void prepareDetailsViewData(final EventListItem item) {
final VdrManagerApp app = (VdrManagerApp) getApplication();
app.setCurrentEvent(item.getEvent());
- app.setCurrentEpgList(CACHE.get(currentChannel));
+ app.setCurrentEpgList(getCache());
}
@Override
@@ -459,7 +459,7 @@ public class EventEpgListActivity extends BaseTimerEditActivity<Epg> implements
@Override
protected List<Epg> getCACHE() {
- return getCACHE();
+ return getCache();
}
@Override