summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlado <herrlado@gmail.com>2013-03-04 00:35:18 +0100
committerlado <herrlado@gmail.com>2013-03-04 00:35:18 +0100
commitcde07f19149bd3df3f8440f0ac39c79f74b15e95 (patch)
tree6837642317f2b8ca74ce2ef317e1a6a57d76523c
parent8070b611c4549d7adc491219c394cd9e93834d0a (diff)
downloadvdr-manager-cde07f19149bd3df3f8440f0ac39c79f74b15e95.tar.gz
vdr-manager-cde07f19149bd3df3f8440f0ac39c79f74b15e95.tar.bz2
bug fix
-rw-r--r--vdrmanager/src/de/bjusystems/vdrmanager/gui/EventEpgListActivity.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/vdrmanager/src/de/bjusystems/vdrmanager/gui/EventEpgListActivity.java b/vdrmanager/src/de/bjusystems/vdrmanager/gui/EventEpgListActivity.java
index 8557f20..6fc3646 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,7 +211,7 @@ 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;
@@ -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