summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlado <herrlado@gmail.com>2011-10-26 14:41:34 +0200
committerlado <herrlado@gmail.com>2011-10-26 14:41:34 +0200
commitdf9a672480d4ac7e50c185ebfce41fecd6be4832 (patch)
tree2f663d0a4f4e2a1f17a566b43e347207578d7c34
parentfc3c8f23b7e5b0a587064a0399b175151266b03e (diff)
downloadvdr-manager-df9a672480d4ac7e50c185ebfce41fecd6be4832.tar.gz
vdr-manager-df9a672480d4ac7e50c185ebfce41fecd6be4832.tar.bz2
ListView from parent
-rw-r--r--vdrmanager/src/de/bjusystems/vdrmanager/gui/RecordingListActivity.java24
1 files changed, 9 insertions, 15 deletions
diff --git a/vdrmanager/src/de/bjusystems/vdrmanager/gui/RecordingListActivity.java b/vdrmanager/src/de/bjusystems/vdrmanager/gui/RecordingListActivity.java
index b194b22..b13d3ae 100644
--- a/vdrmanager/src/de/bjusystems/vdrmanager/gui/RecordingListActivity.java
+++ b/vdrmanager/src/de/bjusystems/vdrmanager/gui/RecordingListActivity.java
@@ -40,7 +40,7 @@ public class RecordingListActivity extends BaseEventListActivity<Recording>
adapter = new RecordingAdapter(this);
// attach adapter to ListView
- final ListView listView = (ListView) findViewById(R.id.recording_list);
+ listView = (ListView) findViewById(R.id.recording_list);
listView.setAdapter(adapter);
// set click listener
@@ -55,17 +55,8 @@ public class RecordingListActivity extends BaseEventListActivity<Recording>
}
@Override
- protected void onResume() {
- super.onResume();
- }
-
- @Override
protected void onPause() {
super.onPause();
- if (recordingClient != null) {
- recordingClient.abort();
- }
- dismiss(progress);
}
@Override
@@ -77,7 +68,6 @@ public class RecordingListActivity extends BaseEventListActivity<Recording>
@Override
public void onCreateContextMenu(final ContextMenu menu, final View v,
final ContextMenuInfo menuInfo) {
- super.onCreateContextMenu(menu, v, menuInfo);
if (v.getId() == R.id.recording_list) {
final MenuInflater inflater = getMenuInflater();
@@ -90,6 +80,7 @@ public class RecordingListActivity extends BaseEventListActivity<Recording>
inflater.inflate(R.menu.recording_list_item_menu, menu);
}
+ super.onCreateContextMenu(menu, v, menuInfo);
}
@Override
@@ -101,7 +92,7 @@ public class RecordingListActivity extends BaseEventListActivity<Recording>
Recording rec = event.getRecording();
switch (item.getItemId()) {
case R.id.recording_item_menu_delete: {
- DeleteRecordingTask drt = new DeleteRecordingTask(this,rec) {
+ DeleteRecordingTask drt = new DeleteRecordingTask(this, rec) {
@Override
public void finished() {
dismiss(progress);
@@ -112,10 +103,10 @@ public class RecordingListActivity extends BaseEventListActivity<Recording>
break;
}
case R.id.recording_item_menu_stream: {
- say("Sorry, not yet. It would be. File -> "+ rec.getFileName());
+ say("Sorry, not yet. It would be. File -> " + rec.getFileName());
break;
}
-
+
default:
return super.onContextItemSelected(item);
}
@@ -132,9 +123,12 @@ public class RecordingListActivity extends BaseEventListActivity<Recording>
recordingClient);
// create progress dialog
+
progress = new SvdrpProgressDialog(this, recordingClient);
+
// attach listener
+ task.addListener(progress);
task.addListener(this);
// start task
@@ -156,7 +150,7 @@ public class RecordingListActivity extends BaseEventListActivity<Recording>
@Override
protected int getWindowTitle() {
- return R.string.remux_title;
+ return R.string.action_menu_recordings;
}
@Override