Skip to content
Snippets Groups Projects
Commit 586d514b authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Fix device path comparison

parent e3641f23
No related branches found
No related tags found
No related merge requests found
......@@ -176,7 +176,7 @@ public class MediaParsingService extends Service implements DevicesDiscoveryCb {
private void addDeviceIfNeeded(String path) {
for (String devicePath : mMedialibrary.getDevices()) {
if (path.startsWith(devicePath))
if (path.startsWith(Strings.removeFileProtocole(devicePath)))
return;
}
for (String storagePath : AndroidDevices.getExternalStorageDirectories()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment