[Android] No edition for UPnP favorites

Geoffrey Métais git at videolan.org
Mon Mar 14 12:29:08 CET 2016


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Mar 14 11:02:28 2016 +0100| [964b1fa28e1a8de84c17025558bb0e1594b96139] | committer: Geoffrey Métais

No edition for UPnP favorites

> https://code.videolan.org/videolan/vlc-android/commit/964b1fa28e1a8de84c17025558bb0e1594b96139
---

 vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java b/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java
index 33f57dd..d4ac339 100644
--- a/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java
@@ -415,7 +415,7 @@ public abstract class BaseBrowserFragment extends MediaBrowserFragment implement
                 MediaDatabase db = MediaDatabase.getInstance();
                 if (db.networkFavExists(mw.getUri())) {
                     menu.findItem(R.id.network_remove_favorite).setVisible(true);
-                    menu.findItem(R.id.network_edit_favorite).setVisible(true);
+                    menu.findItem(R.id.network_edit_favorite).setVisible(!TextUtils.equals(mw.getUri().getScheme(), "upnp"));
                 } else
                     menu.findItem(R.id.network_add_favorite).setVisible(true);
             }



More information about the Android mailing list