[Android] MediaLibrary: use isWorking instead of ismLoadingThreadrunning

Ludovic Fauvet git at videolan.org
Mon Oct 1 16:54:50 CEST 2012


vlc-ports/android | branch: master | Ludovic Fauvet <etix at videolan.org> | Mon Oct  1 16:50:56 2012 +0200| [9324c581ee3a8300d4498189b3fda9cdf25e7131] | committer: Ludovic Fauvet

MediaLibrary: use isWorking instead of ismLoadingThreadrunning

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

 vlc-android/src/org/videolan/vlc/MediaLibrary.java               |    4 ----
 .../src/org/videolan/vlc/gui/video/VideoListFragment.java        |    6 +++---
 2 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/MediaLibrary.java b/vlc-android/src/org/videolan/vlc/MediaLibrary.java
index 775b62b..a5771d9 100644
--- a/vlc-android/src/org/videolan/vlc/MediaLibrary.java
+++ b/vlc-android/src/org/videolan/vlc/MediaLibrary.java
@@ -180,10 +180,6 @@ public class MediaLibrary {
         return items;
     }
 
-    public boolean ismLoadingThreadrunning () {
-        return mLoadingThread.isAlive();
-    };
-
     private class GetMediaItemsRunnable implements Runnable {
 
         private final Stack<File> directories = new Stack<File>();
diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoListFragment.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoListFragment.java
index daa75de..d4ee6a8 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoListFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoListFragment.java
@@ -103,7 +103,7 @@ public class VideoListFragment extends SherlockListFragment implements ISortable
         // init the information for the scan (1/2)
         mFlipperViewLoading = (ViewFlipper) v.findViewById(R.id.flipper_loading);
         mTextViewNomedia = (TextView) v.findViewById(R.id.textview_nomedia);
-        
+
         return v;
     }
 
@@ -117,8 +117,8 @@ public class VideoListFragment extends SherlockListFragment implements ISortable
         filter.addAction(ACTION_SCAN_START);
         filter.addAction(ACTION_SCAN_STOP);
         getActivity().registerReceiver(messageReceiverVideoListFragment, filter);
-        Log.i(TAG,"mMediaLibrary.ismLoadingThreadrunning() " + Boolean.toString(mMediaLibrary.ismLoadingThreadrunning()));
-        if (mMediaLibrary.ismLoadingThreadrunning()) {
+        Log.i(TAG,"mMediaLibrary.isWorking() " + Boolean.toString(mMediaLibrary.isWorking()));
+        if (mMediaLibrary.isWorking()) {
             actionScanStart(getActivity().getApplicationContext());
         }
 



More information about the Android mailing list