diff options
author | lado <herrlado@gmail.com> | 2011-10-10 01:19:02 +0200 |
---|---|---|
committer | lado <herrlado@gmail.com> | 2011-10-10 01:19:02 +0200 |
commit | d93d155acc122f1a71ec03a2794ba4d54bb19bd4 (patch) | |
tree | 0ed1e78e01d01088c3f6e88b074835973023dc3c /vdrmanager/src/de | |
parent | 152368b04aee2e0a01e6da1c252c4086a64dc6b6 (diff) | |
download | vdr-manager-d93d155acc122f1a71ec03a2794ba4d54bb19bd4.tar.gz vdr-manager-d93d155acc122f1a71ec03a2794ba4d54bb19bd4.tar.bz2 |
refactor some code
Diffstat (limited to 'vdrmanager/src/de')
-rw-r--r-- | vdrmanager/src/de/bjusystems/vdrmanager/gui/EventEpgListActivity.java | 12 |
1 files changed, 4 insertions, 8 deletions
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<Channel> 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<Channel> channelSpinnerAdapter = new ArrayAdapter<Channel>( 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; } - } |