From c850724ef3ff1605c2fd68e2a1afa583cd11706c Mon Sep 17 00:00:00 2001 From: lado Date: Sat, 31 May 2014 10:11:08 +0200 Subject: 12 --- .../de/bjusystems/vdrmanager/gui/EpgDetailsActivity.java | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'vdrmanager/src/de/bjusystems') 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); -- cgit v1.2.3