summaryrefslogtreecommitdiff
path: root/vdrmanager/src/de
diff options
context:
space:
mode:
Diffstat (limited to 'vdrmanager/src/de')
-rw-r--r--vdrmanager/src/de/bjusystems/vdrmanager/gui/EpgDetailsActivity.java18
1 files changed, 11 insertions, 7 deletions
diff --git a/vdrmanager/src/de/bjusystems/vdrmanager/gui/EpgDetailsActivity.java b/vdrmanager/src/de/bjusystems/vdrmanager/gui/EpgDetailsActivity.java
index 861746c..6f4a42d 100644
--- a/vdrmanager/src/de/bjusystems/vdrmanager/gui/EpgDetailsActivity.java
+++ b/vdrmanager/src/de/bjusystems/vdrmanager/gui/EpgDetailsActivity.java
@@ -477,13 +477,6 @@ public class EpgDetailsActivity extends ICSBaseActivity implements
final Event cEvent = epgs.get(pager.getCurrentItem());
- final Timerable timerable;
-
- if(cEvent instanceof Timerable){
- timerable = (Timerable)cEvent;
- } else {
- return;
- }
switch (v.getId()) {
case R.id.epg_event_livetv:
@@ -510,11 +503,22 @@ public class EpgDetailsActivity extends ICSBaseActivity implements
} else if (cEvent instanceof Recording) {
ada.add(new Wrapper(R.string.epg_item_menu_timer_delete));
} else {
+
ada.add(new Wrapper(R.string.epg_item_menu_timer_add));
if (Utils.isLive(cEvent) && (cEvent instanceof Timerable) && ((Timerable)cEvent).getTimer() == null) {
ada.add(new Wrapper(R.string.epg_item_menu_timer_record));
}
}
+
+ final Timerable timerable;
+
+ if(cEvent instanceof Timerable){
+ timerable = (Timerable)cEvent;
+ } else {
+ return;
+ }
+
+
new AlertDialog.Builder(this)
.setAdapter(ada, new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int which) {