summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlado <herrlado@gmail.com>2011-10-10 01:19:40 +0200
committerlado <herrlado@gmail.com>2011-10-10 01:19:40 +0200
commit2c9a6ea80f7fc39e931f45c5a71c841aa3fce728 (patch)
treeb09d19436a9d5d9c3fb442f0401a0a79c2a1486d
parentd93d155acc122f1a71ec03a2794ba4d54bb19bd4 (diff)
downloadvdr-manager-2c9a6ea80f7fc39e931f45c5a71c841aa3fce728.tar.gz
vdr-manager-2c9a6ea80f7fc39e931f45c5a71c841aa3fce728.tar.bz2
refactor code
-rw-r--r--vdrmanager/src/de/bjusystems/vdrmanager/gui/TimeEpgListActivity.java12
1 files changed, 6 insertions, 6 deletions
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<EpgSearchTimeValue>(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;
}
+
}