diff options
Diffstat (limited to 'vdrmanager/src/de/bjusystems')
-rw-r--r-- | vdrmanager/src/de/bjusystems/vdrmanager/gui/EpgDetailsActivity.java | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/vdrmanager/src/de/bjusystems/vdrmanager/gui/EpgDetailsActivity.java b/vdrmanager/src/de/bjusystems/vdrmanager/gui/EpgDetailsActivity.java index 7c725b1..33af528 100644 --- a/vdrmanager/src/de/bjusystems/vdrmanager/gui/EpgDetailsActivity.java +++ b/vdrmanager/src/de/bjusystems/vdrmanager/gui/EpgDetailsActivity.java @@ -165,10 +165,10 @@ public class EpgDetailsActivity extends ICSBaseActivity implements // timerable = (Timerable) cEvent; } - adapter = new Adapter(); + pager = (ViewPager) findViewById(R.id.viewpager); pager.setOnPageChangeListener(this); - pager.setAdapter(adapter); + new VoidAsyncTask() { @@ -209,15 +209,10 @@ public class EpgDetailsActivity extends ICSBaseActivity implements @Override protected void onPostExecute(Void result) { - - // cEvent = epgs.get(counter); - adapter.notifyDataSetChanged(); + adapter = new Adapter(); + pager.setAdapter(adapter); pager.setCurrentItem(counter); onPageSelected(counter); - // current = counter; - // indicator.setViewPager(pager); - - // publishEPG(epg); } }.execute((Void) null); |