From 2c9a6ea80f7fc39e931f45c5a71c841aa3fce728 Mon Sep 17 00:00:00 2001 From: lado Date: Mon, 10 Oct 2011 01:19:40 +0200 Subject: refactor code --- .../de/bjusystems/vdrmanager/gui/TimeEpgListActivity.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'vdrmanager') diff --git a/vdrmanager/src/de/bjusystems/vdrmanager/gui/TimeEpgListActivity.java b/vdrmanager/src/de/bjusystems/vdrmanager/gui/TimeEpgListActivity.java index 76c3335..488939b 100644 --- a/vdrmanager/src/de/bjusystems/vdrmanager/gui/TimeEpgListActivity.java +++ b/vdrmanager/src/de/bjusystems/vdrmanager/gui/TimeEpgListActivity.java @@ -48,13 +48,9 @@ public class TimeEpgListActivity extends BaseEpgListActivity implements @Override protected void onCreate(final Bundle savedInstanceState) { super.onCreate(savedInstanceState); + - // Attach view - setContentView(getMainLayout()); - - ListView lv = (ListView) findViewById(R.id.whatson_list); - lv.setFastScrollEnabled(true); - + // create adapter for time spinner timeSpinnerAdapter = new ArrayAdapter(this, android.R.layout.simple_spinner_item); @@ -73,6 +69,9 @@ public class TimeEpgListActivity extends BaseEpgListActivity implements // Create adapter for EPG list listView = (ListView) findViewById(R.id.whatson_list); + listView.setFastScrollEnabled(true); + listView.setTextFilterEnabled(true); + listView.setAdapter(adapter); registerForContextMenu(listView); @@ -258,4 +257,5 @@ public class TimeEpgListActivity extends BaseEpgListActivity implements protected int getWindowTitle() { return R.string.epg_by_time; } + } -- cgit v1.2.3