[Android] Change for new MediaWrapper constructor

Geoffrey Métais git at videolan.org
Mon Feb 9 11:30:48 CET 2015


vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Feb  2 18:29:24 2015 +0100| [8d68396b690d45c0790f4644a84b3810046ac0e3] | committer: Geoffrey Métais

Change for new MediaWrapper constructor

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=8d68396b690d45c0790f4644a84b3810046ac0e3
---

 vlc-android/src/org/videolan/vlc/gui/network/NetworkFragment.java |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/network/NetworkFragment.java b/vlc-android/src/org/videolan/vlc/gui/network/NetworkFragment.java
index d0db83e..289bd86 100644
--- a/vlc-android/src/org/videolan/vlc/gui/network/NetworkFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/network/NetworkFragment.java
@@ -191,7 +191,7 @@ public class NetworkFragment extends BrowserFragment implements IRefreshable, Me
             if (!favs.isEmpty()) {
                 mFavorites = favs.size();
                 for (String fav : favs) {
-                    mAdapter.addItem(new MediaWrapper(mLibVLC, fav), false, true);
+                    mAdapter.addItem(new MediaWrapper(fav), false, true);
                     mAdapter.notifyDataSetChanged();
                 }
                 mAdapter.addItem("Network favorites", false, true);
@@ -216,7 +216,7 @@ public class NetworkFragment extends BrowserFragment implements IRefreshable, Me
             if (mFavorites == 0)
                 mAdapter.addItem("Network favorites", false, false); //add header if needed
             for (String fav : favs)
-                mAdapter.addItem(new MediaWrapper(mLibVLC, fav), false, false); //add new favorites
+                mAdapter.addItem(new MediaWrapper(fav), false, false); //add new favorites
         }
         mFavorites = newSize; //update count
     }



More information about the Android mailing list