diff options
author | lado <herrlado@gmail.com> | 2012-01-24 22:51:48 +0100 |
---|---|---|
committer | lado <herrlado@gmail.com> | 2012-01-24 22:51:48 +0100 |
commit | 55dda809e44f9f245317641ff970bf3288ce0671 (patch) | |
tree | 7dd4b44a17935f538dba69e36e4c3c6db556498b /vdrmanager/src | |
parent | 0bd56becf65d8d89224e8998ed25a9653fbd327a (diff) | |
download | vdr-manager-55dda809e44f9f245317641ff970bf3288ce0671.tar.gz vdr-manager-55dda809e44f9f245317641ff970bf3288ce0671.tar.bz2 |
http://projects.vdr-developer.org/issues/863
Diffstat (limited to 'vdrmanager/src')
-rw-r--r-- | vdrmanager/src/de/bjusystems/vdrmanager/gui/RecordingListActivity.java | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/vdrmanager/src/de/bjusystems/vdrmanager/gui/RecordingListActivity.java b/vdrmanager/src/de/bjusystems/vdrmanager/gui/RecordingListActivity.java index 3a9351c..64faf73 100644 --- a/vdrmanager/src/de/bjusystems/vdrmanager/gui/RecordingListActivity.java +++ b/vdrmanager/src/de/bjusystems/vdrmanager/gui/RecordingListActivity.java @@ -2,6 +2,7 @@ package de.bjusystems.vdrmanager.gui; import java.util.Calendar; +import android.content.ClipData.Item; import android.os.Bundle; import android.util.Log; import android.view.ContextMenu; @@ -81,25 +82,31 @@ public class RecordingListActivity extends BaseEventListActivity<Recording> public void onCreateContextMenu(final ContextMenu menu, final View v, final ContextMenuInfo menuInfo) { + final AdapterView.AdapterContextMenuInfo info = (AdapterView.AdapterContextMenuInfo) menuInfo; + final EventListItem item = adapter.getItem(info.position); + if(item.isHeader()){ + return; + } + if (v.getId() == R.id.recording_list) { final MenuInflater inflater = getMenuInflater(); - final AdapterView.AdapterContextMenuInfo info = (AdapterView.AdapterContextMenuInfo) menuInfo; - // set menu title - final EventListItem item = adapter.getItem(info.position); - if(item.isHeader()){ - return; - } final EventFormatter formatter = new EventFormatter(item); menu.setHeaderTitle(formatter.getTitle()); inflater.inflate(R.menu.recording_list_item_menu, menu); if(Preferences.get().isEnableRecStream() == false){ menu.removeItem(R.id.recording_item_menu_stream); - } + } } + super.onCreateContextMenu(menu, v, menuInfo); + // +// http://projects.vdr-developer.org/issues/863 + if(Utils.isLive(item)){ + menu.removeItem(R.id.epg_item_menu_live_tv); + } } |