}
return false;
}});
if (proxyFiles != null) {
for (File proxyFile : proxyFiles) {
PluginProxy proxy = loadProxy(proxyFile);
if (proxy != null) {
loadedProxies.add(proxy);
mLog.info("Loaded plugin proxy " + proxyFile);
}
else {
mLog.warning("Failed loading plugin proxy " + proxyFile);
}
}
}
}
}
File[] fileArr = folder.listFiles(new FilenameFilter(){
public boolean accept(File dir, String fileName) {
for (String ignored : IGNORED_PLUGINS) {
if (fileName.equalsIgnoreCase(ignored)) {
return false;
}
}
return true;
}
});
if (fileArr == null) {
return;
}
// remove old cleverepg service, if new one is found
File oldService = null;
ArrayList<File> files = new ArrayList<File>(Arrays.asList(fileArr));
for (File file : fileArr) {
if (file.getName().equalsIgnoreCase("CleverEPGDataService3.jar")) {
for (File file2 : files) {
if (file2.getName().equalsIgnoreCase("CleverEPGDataService.jar")) {
oldService = file2;
break;
}
}
}
}
if (oldService != null) {
files.remove(oldService);
}
for (File file : files) {
boolean load = true;
for (PluginProxy proxy : loadedProxies) {
if (proxy.getPluginFileName().equalsIgnoreCase(file.getPath())) {
load = false;
break;
}
}
if (load) {