diff options
author | daniel oeh <daniel.oeh@gmail.com> | 2014-03-29 11:09:47 +0100 |
---|---|---|
committer | daniel oeh <daniel.oeh@gmail.com> | 2014-03-29 11:09:47 +0100 |
commit | ae849077c78770f096f40e9360250b9e32d14f40 (patch) | |
tree | cbc030c6c942d9ad42d633415a1cb0e1d79b5196 /src/de/danoeh/antennapod/opml/OpmlReader.java | |
parent | b5a3c72ac8cfa5b5c5f2af4321f851b5bb293d35 (diff) | |
parent | b2de7512f4c871e882760bfe8bffa27d10c1c68a (diff) | |
download | AntennaPod-ae849077c78770f096f40e9360250b9e32d14f40.zip |
Merge branch 'develop'0.9.8.3
Diffstat (limited to 'src/de/danoeh/antennapod/opml/OpmlReader.java')
-rw-r--r-- | src/de/danoeh/antennapod/opml/OpmlReader.java | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/src/de/danoeh/antennapod/opml/OpmlReader.java b/src/de/danoeh/antennapod/opml/OpmlReader.java index 61a00742c..19a980dee 100644 --- a/src/de/danoeh/antennapod/opml/OpmlReader.java +++ b/src/de/danoeh/antennapod/opml/OpmlReader.java @@ -1,15 +1,14 @@ package de.danoeh.antennapod.opml; -import java.io.IOException; -import java.io.Reader; -import java.util.ArrayList; - +import android.util.Log; +import de.danoeh.antennapod.BuildConfig; import org.xmlpull.v1.XmlPullParser; import org.xmlpull.v1.XmlPullParserException; import org.xmlpull.v1.XmlPullParserFactory; -import android.util.Log; -import de.danoeh.antennapod.AppConfig; +import java.io.IOException; +import java.io.Reader; +import java.util.ArrayList; /** Reads OPML documents. */ public class OpmlReader { @@ -38,16 +37,16 @@ public class OpmlReader { while (eventType != XmlPullParser.END_DOCUMENT) { switch (eventType) { case XmlPullParser.START_DOCUMENT: - if (AppConfig.DEBUG) + if (BuildConfig.DEBUG) Log.d(TAG, "Reached beginning of document"); break; case XmlPullParser.START_TAG: if (xpp.getName().equals(OpmlSymbols.OPML)) { isInOpml = true; - if (AppConfig.DEBUG) + if (BuildConfig.DEBUG) Log.d(TAG, "Reached beginning of OPML tree."); } else if (isInOpml && xpp.getName().equals(OpmlSymbols.OUTLINE)) { - if (AppConfig.DEBUG) + if (BuildConfig.DEBUG) Log.d(TAG, "Found new Opml element"); OpmlElement element = new OpmlElement(); @@ -69,7 +68,7 @@ public class OpmlReader { } elementList.add(element); } else { - if (AppConfig.DEBUG) + if (BuildConfig.DEBUG) Log.d(TAG, "Skipping element because of missing xml url"); } @@ -79,7 +78,7 @@ public class OpmlReader { eventType = xpp.next(); } - if (AppConfig.DEBUG) + if (BuildConfig.DEBUG) Log.d(TAG, "Parsing finished."); return elementList; |