Commit 9324c581 authored by Ludovic Fauvet's avatar Ludovic Fauvet
Browse files

MediaLibrary: use isWorking instead of ismLoadingThreadrunning

parent 748d9a09
......@@ -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>();
......
......@@ -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());
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment