diff options
author | lado <herrlado@gmail.com> | 2011-11-02 21:49:30 +0100 |
---|---|---|
committer | lado <herrlado@gmail.com> | 2011-11-02 21:49:30 +0100 |
commit | e921c0f6dd4167aa56747913766e26e1854772e9 (patch) | |
tree | 8db25868e03cc4eb924ff180dc3206a036762dac /vdrmanager/src/de | |
parent | 4ca0811ef7ae37ee4dcd6fd6601cb8b44a6e9322 (diff) | |
download | vdr-manager-e921c0f6dd4167aa56747913766e26e1854772e9.tar.gz vdr-manager-e921c0f6dd4167aa56747913766e26e1854772e9.tar.bz2 |
Feature #781
Diffstat (limited to 'vdrmanager/src/de')
-rw-r--r-- | vdrmanager/src/de/bjusystems/vdrmanager/gui/TimerListActivity.java | 41 |
1 files changed, 24 insertions, 17 deletions
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<Timer> 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<Timer> 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<Timer> 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<Timer> 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) { |