Commit bef4bb09 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Use correct iterator

CID #1297092
parent c1eacd69
......@@ -20,6 +20,23 @@
package org.videolan.vlc;
import android.content.Context;
import android.os.Environment;
import android.os.Handler;
import android.os.Message;
import android.text.TextUtils;
import android.util.Log;
import org.videolan.libvlc.LibVLC;
import org.videolan.libvlc.Media;
import org.videolan.libvlc.util.Extensions;
import org.videolan.vlc.gui.audio.AudioBrowserListAdapter;
import org.videolan.vlc.interfaces.IBrowser;
import org.videolan.vlc.util.AndroidDevices;
import org.videolan.vlc.util.Util;
import org.videolan.vlc.util.VLCInstance;
import org.videolan.vlc.util.WeakHandler;
import java.io.File;
import java.io.FileFilter;
import java.io.IOException;
......@@ -30,27 +47,11 @@ import java.util.HashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Stack;
import java.util.concurrent.locks.ReadWriteLock;
import java.util.concurrent.locks.ReentrantReadWriteLock;
import org.videolan.libvlc.LibVLC;
import org.videolan.libvlc.Media;
import org.videolan.libvlc.util.Extensions;
import org.videolan.vlc.gui.audio.AudioBrowserListAdapter;
import org.videolan.vlc.interfaces.IBrowser;
import org.videolan.vlc.util.AndroidDevices;
import org.videolan.vlc.util.Util;
import org.videolan.vlc.util.VLCInstance;
import org.videolan.vlc.util.WeakHandler;
import android.content.Context;
import android.os.Environment;
import android.os.Handler;
import android.os.Message;
import android.text.TextUtils;
import android.util.Log;
public class MediaLibrary {
public final static String TAG = "VLC/MediaLibrary";
......@@ -336,8 +337,10 @@ public class MediaLibrary {
//Remove ignored files
HashSet<String> mediasToRemove = new HashSet<String>();
String path;
outloop:
for (String path : existingMedias.keySet()){
for (Map.Entry<String, MediaWrapper> entry : existingMedias.entrySet()){
path = entry.getKey();
for (String dirPath : dirsToIgnore) {
if (path.startsWith(dirPath)) {
mediasToRemove.add(path);
......
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