From 501fa6eea502a89b0e7539fe96c648fc5ddaa107 Mon Sep 17 00:00:00 2001 From: lado Date: Thu, 2 Feb 2012 17:08:43 +0100 Subject: refreshViewOnResume --- .../src/de/bjusystems/vdrmanager/gui/BaseEventListActivity.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'vdrmanager/src') diff --git a/vdrmanager/src/de/bjusystems/vdrmanager/gui/BaseEventListActivity.java b/vdrmanager/src/de/bjusystems/vdrmanager/gui/BaseEventListActivity.java index 7a0f1e8..37b34d3 100644 --- a/vdrmanager/src/de/bjusystems/vdrmanager/gui/BaseEventListActivity.java +++ b/vdrmanager/src/de/bjusystems/vdrmanager/gui/BaseEventListActivity.java @@ -80,12 +80,10 @@ public abstract class BaseEventListActivity extends // .getParcelableExtra(Intents.CURRENT_CHANNEL); } - private boolean refreshViewOnResume = false; - @Override protected void onResume() { super.onResume(); - if (refreshViewOnResume) { + if (notifyDataSetChangedOnResume()) { adapter.notifyDataSetChanged(); } } @@ -235,10 +233,13 @@ public abstract class BaseEventListActivity extends TimerDetailsActivity.REQUEST_CODE_TIMER_MODIFIED); } + protected boolean notifyDataSetChangedOnResume(){ + return true; + } + @Override protected void onPause() { super.onPause(); - refreshViewOnResume = true; // if (epgClient != null) { // epgClient.abort(); // } -- cgit v1.2.3