Merge branch 'parse-invalid-opml' of git://github.com/arantius/AntennaPod into arantius-parse-invalid-opml

This commit is contained in:
daniel oeh 2012-12-19 15:31:22 +01:00
commit f6c31804ec

View File

@ -17,7 +17,6 @@ public class OpmlReader {
// ATTRIBUTES
private boolean isInOpml = false;
private boolean isInBody = false;
private ArrayList<OpmlElement> elementList;
/**
@ -47,12 +46,7 @@ public class OpmlReader {
isInOpml = true;
if (AppConfig.DEBUG)
Log.d(TAG, "Reached beginning of OPML tree.");
} else if (isInOpml && xpp.getName().equals(OpmlSymbols.BODY)) {
isInBody = true;
if (AppConfig.DEBUG)
Log.d(TAG, "Reached beginning of body tree.");
} else if (isInBody && xpp.getName().equals(OpmlSymbols.OUTLINE)) {
} else if (isInOpml && xpp.getName().equals(OpmlSymbols.OUTLINE)) {
if (AppConfig.DEBUG)
Log.d(TAG, "Found new Opml element");
OpmlElement element = new OpmlElement();