summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlado <herrlado@gmail.com>2011-10-10 01:19:02 +0200
committerlado <herrlado@gmail.com>2011-10-10 01:19:02 +0200
commitd93d155acc122f1a71ec03a2794ba4d54bb19bd4 (patch)
tree0ed1e78e01d01088c3f6e88b074835973023dc3c
parent152368b04aee2e0a01e6da1c252c4086a64dc6b6 (diff)
downloadvdr-manager-d93d155acc122f1a71ec03a2794ba4d54bb19bd4.tar.gz
vdr-manager-d93d155acc122f1a71ec03a2794ba4d54bb19bd4.tar.bz2
refactor some code
-rw-r--r--vdrmanager/src/de/bjusystems/vdrmanager/gui/EventEpgListActivity.java12
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;
}
-
}