summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlado <herrlado@gmail.com>2012-02-02 17:08:43 +0100
committerlado <herrlado@gmail.com>2012-02-02 17:08:43 +0100
commit501fa6eea502a89b0e7539fe96c648fc5ddaa107 (patch)
treeb588d696a6527434ad3c0d9268f7769276c2b04b
parentf5af1ef98ab884cf5ea51636546340cef0c51999 (diff)
downloadvdr-manager-501fa6eea502a89b0e7539fe96c648fc5ddaa107.tar.gz
vdr-manager-501fa6eea502a89b0e7539fe96c648fc5ddaa107.tar.bz2
refreshViewOnResume
-rw-r--r--vdrmanager/src/de/bjusystems/vdrmanager/gui/BaseEventListActivity.java9
1 files changed, 5 insertions, 4 deletions
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<T extends Event> 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<T extends Event> extends
TimerDetailsActivity.REQUEST_CODE_TIMER_MODIFIED);
}
+ protected boolean notifyDataSetChangedOnResume(){
+ return true;
+ }
+
@Override
protected void onPause() {
super.onPause();
- refreshViewOnResume = true;
// if (epgClient != null) {
// epgClient.abort();
// }