From d93d155acc122f1a71ec03a2794ba4d54bb19bd4 Mon Sep 17 00:00:00 2001 From: lado Date: Mon, 10 Oct 2011 01:19:02 +0200 Subject: refactor some code --- .../de/bjusystems/vdrmanager/gui/EventEpgListActivity.java | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'vdrmanager/src/de') diff --git a/vdrmanager/src/de/bjusystems/vdrmanager/gui/EventEpgListActivity.java b/vdrmanager/src/de/bjusystems/vdrmanager/gui/EventEpgListActivity.java index 2af80e6..f48bf72 100644 --- a/vdrmanager/src/de/bjusystems/vdrmanager/gui/EventEpgListActivity.java +++ b/vdrmanager/src/de/bjusystems/vdrmanager/gui/EventEpgListActivity.java @@ -49,12 +49,6 @@ public class EventEpgListActivity extends BaseEpgListActivity implements // get state final List channels = ChannelClient.getChannels(); - // Attach view - setContentView(getMainLayout()); - - ListView lv = (ListView) findViewById(R.id.whatson_list); - lv.setFastScrollEnabled(true); - // create adapter for channel spinner final ArrayAdapter channelSpinnerAdapter = new ArrayAdapter( this, android.R.layout.simple_spinner_item); @@ -81,6 +75,8 @@ public class EventEpgListActivity extends BaseEpgListActivity implements // Create adapter for EPG list listView = (ListView) findViewById(R.id.whatson_list); listView.setAdapter(adapter); + listView.setFastScrollEnabled(true); + listView.setTextFilterEnabled(true); registerForContextMenu(listView); // register EPG item click @@ -91,7 +87,8 @@ public class EventEpgListActivity extends BaseEpgListActivity implements @Override protected void onResume() { super.onResume(); - // startEpgQuery(); + //adapter.notifyDataSetChanged(); + //startEpgQuery(); } public void onItemSelected(final AdapterView parent, final View view, @@ -244,5 +241,4 @@ public class EventEpgListActivity extends BaseEpgListActivity implements protected int getWindowTitle() { return R.string.epg_by_channel; } - } -- cgit v1.2.3