summaryrefslogtreecommitdiff
path: root/src/de/danoeh/antennapod/opml/OpmlReader.java
diff options
context:
space:
mode:
authordaniel oeh <daniel.oeh@gmail.com>2014-03-28 21:16:27 +0100
committerdaniel oeh <daniel.oeh@gmail.com>2014-03-28 21:16:27 +0100
commitb2de7512f4c871e882760bfe8bffa27d10c1c68a (patch)
tree2cc17eb8cdcbb8bfdb79f5e32dfab47abe9acc59 /src/de/danoeh/antennapod/opml/OpmlReader.java
parent7dec032d2cfb8835e29cb939b596752380650dcb (diff)
downloadAntennaPod-b2de7512f4c871e882760bfe8bffa27d10c1c68a.zip
Replaced AppConfig.DEBUG with BuildConfig.DEBUG
Diffstat (limited to 'src/de/danoeh/antennapod/opml/OpmlReader.java')
-rw-r--r--src/de/danoeh/antennapod/opml/OpmlReader.java21
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;