summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordaniel oeh <daniel.oeh@gmail.com>2013-02-13 21:24:43 +0100
committerdaniel oeh <daniel.oeh@gmail.com>2013-02-13 21:24:43 +0100
commitc3852f333cb4405e137b1f506a8fc7cbd210f9c9 (patch)
treef48ca119db937d4b57d7088976ca5448e2b75162
parent71502d74ccdfcef97b871ba1aa03ffb09075abab (diff)
downloadAntennaPod-c3852f333cb4405e137b1f506a8fc7cbd210f9c9.zip
Removed 'share link' and 'share source link' from feedmenu
-rw-r--r--res/menu/feedlist.xml13
-rw-r--r--src/de/danoeh/antennapod/util/menuhandler/FeedMenuHandler.java10
2 files changed, 7 insertions, 16 deletions
diff --git a/res/menu/feedlist.xml b/res/menu/feedlist.xml
index 58ee2190d..49834c4fa 100644
--- a/res/menu/feedlist.xml
+++ b/res/menu/feedlist.xml
@@ -3,8 +3,9 @@
<item
android:id="@+id/refresh_item"
+ android:icon="?attr/navigation_refresh"
android:showAsAction="ifRoom|collapseActionView"
- android:title="@string/refresh_label" android:icon="?attr/navigation_refresh">
+ android:title="@string/refresh_label">
</item>
<item
android:id="@+id/mark_all_read_item"
@@ -37,15 +38,5 @@
android:title="@string/support_label"
android:visible="false">
</item>
- <item
- android:id="@+id/share_link_item"
- android:showAsAction="collapseActionView"
- android:title="@string/share_link_label">
- </item>
- <item
- android:id="@+id/share_source_item"
- android:showAsAction="collapseActionView"
- android:title="@string/share_source_label">
- </item>
</menu> \ No newline at end of file
diff --git a/src/de/danoeh/antennapod/util/menuhandler/FeedMenuHandler.java b/src/de/danoeh/antennapod/util/menuhandler/FeedMenuHandler.java
index 3a78ffb30..37f5fd0d3 100644
--- a/src/de/danoeh/antennapod/util/menuhandler/FeedMenuHandler.java
+++ b/src/de/danoeh/antennapod/util/menuhandler/FeedMenuHandler.java
@@ -46,14 +46,14 @@ public class FeedMenuHandler {
refresh.setVisible(true);
}
- menu.findItem(R.id.share_link_item).setVisible(
- selectedFeed.getLink() != null);
-
return true;
}
- /** NOTE: This method does not handle clicks on the 'remove feed' - item.
- * @throws DownloadRequestException */
+ /**
+ * NOTE: This method does not handle clicks on the 'remove feed' - item.
+ *
+ * @throws DownloadRequestException
+ */
public static boolean onOptionsItemClicked(Context context, MenuItem item,
Feed selectedFeed) throws DownloadRequestException {
FeedManager manager = FeedManager.getInstance();