From cde07f19149bd3df3f8440f0ac39c79f74b15e95 Mon Sep 17 00:00:00 2001 From: lado Date: Mon, 4 Mar 2013 00:35:18 +0100 Subject: bug fix --- .../de/bjusystems/vdrmanager/gui/EventEpgListActivity.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'vdrmanager/src/de') 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 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 implements return false; } - ArrayList cachedChannel = CACHE.get(currentChannel) ; + ArrayList cachedChannel = CACHE.get(currentChannel.getId()) ; if (cachedChannel == null) { return false; @@ -285,7 +285,7 @@ public class EventEpgListActivity extends BaseTimerEditActivity implements private static final ArrayList EMPTY = new ArrayList(0); private ArrayList getCache() { - ArrayList arrayList = CACHE.get(currentChannel); + ArrayList arrayList = CACHE.get(currentChannel.getId()); if (arrayList == null) { return EMPTY; } @@ -398,7 +398,7 @@ public class EventEpgListActivity extends BaseTimerEditActivity 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 implements @Override protected List getCACHE() { - return getCACHE(); + return getCache(); } @Override -- cgit v1.2.3