[Android] fix missing releaseBrowser calls

Thomas Guillem git at videolan.org
Mon Jun 15 18:24:47 CEST 2015


vlc-ports/android | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Jun 15 18:24:24 2015 +0200| [61b01a1240d933a51a06d3323aacc543c686ab28] | committer: Thomas Guillem

fix missing releaseBrowser calls

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

 .../src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java      |    4 +++-
 1 file changed, 3 insertions(+), 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 c458b49..b30dd25 100644
--- a/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java
@@ -536,6 +536,7 @@ public abstract class BaseBrowserFragment extends MediaBrowserFragment implement
         public void onBrowseEnd() {
             if (mAdapter.isEmpty()) {
                 mCurrentParsedPosition = -1;
+                releaseBrowser();
                 return;
             }
             String holderText = getDescription(directories.size(), files.size());
@@ -565,7 +566,8 @@ public abstract class BaseBrowserFragment extends MediaBrowserFragment implement
                     mCurrentParsedPosition = -1;
                     releaseBrowser();
                 }
-            }
+            } else
+                releaseBrowser();
             directories .clear();
             files.clear();
         }



More information about the Android mailing list