From e921c0f6dd4167aa56747913766e26e1854772e9 Mon Sep 17 00:00:00 2001 From: lado Date: Wed, 2 Nov 2011 21:49:30 +0100 Subject: Feature #781 --- .../vdrmanager/gui/TimerListActivity.java | 41 +++++++++++++--------- 1 file changed, 24 insertions(+), 17 deletions(-) (limited to 'vdrmanager/src/de') diff --git a/vdrmanager/src/de/bjusystems/vdrmanager/gui/TimerListActivity.java b/vdrmanager/src/de/bjusystems/vdrmanager/gui/TimerListActivity.java index e9510ac..b0c9b46 100644 --- a/vdrmanager/src/de/bjusystems/vdrmanager/gui/TimerListActivity.java +++ b/vdrmanager/src/de/bjusystems/vdrmanager/gui/TimerListActivity.java @@ -29,15 +29,18 @@ public class TimerListActivity extends BaseTimerEditActivity implements */ TimerClient timerClient; - - /* (non-Javadoc) - * @see de.bjusystems.vdrmanager.gui.BaseEventListActivity#onCreate(android.os.Bundle) + /* + * (non-Javadoc) + * + * @see + * de.bjusystems.vdrmanager.gui.BaseEventListActivity#onCreate(android.os + * .Bundle) */ @Override protected void onCreate(final Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Attach view -// setContentView(getMainLayout()); + // setContentView(getMainLayout()); // create an adapter adapter = new TimeEventAdapter(this); @@ -58,19 +61,17 @@ public class TimerListActivity extends BaseTimerEditActivity implements startTimerQuery(); } - @Override protected void onPause() { super.onPause(); } - private void startTimerQuery() { if (checkInternetConnection() == false) { switchNoConnection(); return; - } + } // get timer client timerClient = new TimerClient(); @@ -89,17 +90,24 @@ public class TimerListActivity extends BaseTimerEditActivity implements task.run(); } - /* (non-Javadoc) - * @see de.bjusystems.vdrmanager.gui.BaseTimerEditActivity#getTimer(de.bjusystems.vdrmanager.data.EventListItem) + /* + * (non-Javadoc) + * + * @see + * de.bjusystems.vdrmanager.gui.BaseTimerEditActivity#getTimer(de.bjusystems + * .vdrmanager.data.EventListItem) */ @Override protected Timer getTimer(EventListItem item) { - return (Timer)item.getEvent(); + return (Timer) item.getEvent(); } - - - /* (non-Javadoc) - * @see de.bjusystems.vdrmanager.gui.BaseEventListActivity#prepareTimer(de.bjusystems.vdrmanager.data.EventListItem) + + /* + * (non-Javadoc) + * + * @see + * de.bjusystems.vdrmanager.gui.BaseEventListActivity#prepareTimer(de.bjusystems + * .vdrmanager.data.EventListItem) */ protected void prepareDetailsViewData(final EventListItem item) { final VdrManagerApp app = (VdrManagerApp) getApplication(); @@ -111,10 +119,9 @@ public class TimerListActivity extends BaseTimerEditActivity implements protected boolean finishedSuccessImpl() { adapter.clear(); sortItemsByTime(results); - for(Event e : results) { - //results.add(e); - Calendar cal = Calendar.getInstance(); int day = -1; + Calendar cal = Calendar.getInstance(); + for (Event e : results) { cal.setTime(e.getStart()); int eday = cal.get(Calendar.DAY_OF_YEAR); if (eday != day) { -- cgit v1.2.3