summaryrefslogtreecommitdiff
path: root/vdrmanager
diff options
context:
space:
mode:
authorlado <herrlado@gmail.com>2013-03-04 00:35:18 +0100
committerlado <herrlado@gmail.com>2013-03-04 00:43:11 +0100
commit0498d40f622203a94217b33b5df428bc9369b98a (patch)
treebb842f5f7b46c62b232f8b4da3238377155fda35 /vdrmanager
parent8070b611c4549d7adc491219c394cd9e93834d0a (diff)
downloadvdr-manager-0498d40f622203a94217b33b5df428bc9369b98a.tar.gz
vdr-manager-0498d40f622203a94217b33b5df428bc9369b98a.tar.bz2
bug fix
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