diff options
author | daniel oeh <daniel.oeh@gmail.com> | 2012-09-22 14:07:58 +0200 |
---|---|---|
committer | daniel oeh <daniel.oeh@gmail.com> | 2012-09-22 14:07:58 +0200 |
commit | 72785bbf73799511a214a7f1d01ae3a94fa03b5a (patch) | |
tree | 6c74cfa1138e6062baef71f839a76dc396c0ab9e /src | |
parent | bc91c382a0ee5c8865fe93a87b28469c735a74a4 (diff) | |
download | AntennaPod-72785bbf73799511a214a7f1d01ae3a94fa03b5a.zip |
Hide 'mark unread' item in release version
Diffstat (limited to 'src')
-rw-r--r-- | src/de/danoeh/antennapod/util/menuhandler/FeedItemMenuHandler.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/de/danoeh/antennapod/util/menuhandler/FeedItemMenuHandler.java b/src/de/danoeh/antennapod/util/menuhandler/FeedItemMenuHandler.java index 1120f8072..1acb5a9f7 100644 --- a/src/de/danoeh/antennapod/util/menuhandler/FeedItemMenuHandler.java +++ b/src/de/danoeh/antennapod/util/menuhandler/FeedItemMenuHandler.java @@ -8,6 +8,7 @@ import com.actionbarsherlock.view.Menu; import com.actionbarsherlock.view.MenuInflater; import com.actionbarsherlock.view.MenuItem; +import de.danoeh.antennapod.AppConfig; import de.danoeh.antennapod.R; import de.danoeh.antennapod.asynctask.FlattrClickWorker; import de.danoeh.antennapod.feed.FeedItem; @@ -28,7 +29,8 @@ public class FeedItemMenuHandler { boolean downloaded = hasMedia && selectedItem.getMedia().isDownloaded(); boolean downloading = hasMedia && requester.isDownloadingFile(selectedItem.getMedia()); - boolean notLoadedAndNotLoading = hasMedia && (!downloaded) && (!downloading); + boolean notLoadedAndNotLoading = hasMedia && (!downloaded) + && (!downloading); menu.findItem(R.id.play_item).setVisible(downloaded); menu.findItem(R.id.remove_item).setVisible(downloaded); @@ -46,11 +48,9 @@ public class FeedItemMenuHandler { menu.findItem(R.id.share_link_item).setVisible( selectedItem.getLink() != null); - if (selectedItem.isRead()) { - menu.findItem(R.id.mark_unread_item).setVisible(true); - } else { - menu.findItem(R.id.mark_read_item).setVisible(true); - } + menu.findItem(R.id.mark_unread_item).setVisible( + selectedItem.isRead() && AppConfig.DEBUG); + menu.findItem(R.id.mark_read_item).setVisible(!selectedItem.isRead()); if (selectedItem.getLink() != null) { menu.findItem(R.id.visit_website_item).setVisible(true); |