summaryrefslogtreecommitdiff
path: root/src/de/danoeh/antennapod/syndication/handler/TypeGetter.java
diff options
context:
space:
mode:
authordaniel oeh <daniel.oeh@gmail.com>2012-07-22 13:06:25 +0200
committerdaniel oeh <daniel.oeh@gmail.com>2012-07-22 13:06:25 +0200
commit4a7b6d439edfad289a7cc1f34de4bf1dc2509e0b (patch)
treee941fd0675f6f5a27b9710e4c3d085f66e261962 /src/de/danoeh/antennapod/syndication/handler/TypeGetter.java
parentf0edc0558b19bd8185e84876a233d1930c5867f5 (diff)
downloadAntennaPod-4a7b6d439edfad289a7cc1f34de4bf1dc2509e0b.zip
Replaced buildconfig condition with appconfig condition
Diffstat (limited to 'src/de/danoeh/antennapod/syndication/handler/TypeGetter.java')
-rw-r--r--src/de/danoeh/antennapod/syndication/handler/TypeGetter.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/de/danoeh/antennapod/syndication/handler/TypeGetter.java b/src/de/danoeh/antennapod/syndication/handler/TypeGetter.java
index 4a706311e..15adb5f19 100644
--- a/src/de/danoeh/antennapod/syndication/handler/TypeGetter.java
+++ b/src/de/danoeh/antennapod/syndication/handler/TypeGetter.java
@@ -12,7 +12,7 @@ import org.xmlpull.v1.XmlPullParserFactory;
import android.util.Log;
-import de.danoeh.antennapod.BuildConfig;
+import de.danoeh.antennapod.AppConfig;
import de.danoeh.antennapod.feed.Feed;
/** Gets the type of a specific feed by reading the root element. */
@@ -39,15 +39,15 @@ public class TypeGetter {
if (eventType == XmlPullParser.START_TAG) {
String tag = xpp.getName();
if (tag.equals(ATOM_ROOT)) {
- if (BuildConfig.DEBUG) Log.d(TAG, "Recognized type Atom");
+ if (AppConfig.DEBUG) Log.d(TAG, "Recognized type Atom");
return Type.ATOM;
} else if (tag.equals(RSS_ROOT)
&& (xpp.getAttributeValue(null, "version")
.equals("2.0"))) {
- if (BuildConfig.DEBUG) Log.d(TAG, "Recognized type RSS 2.0");
+ if (AppConfig.DEBUG) Log.d(TAG, "Recognized type RSS 2.0");
return Type.RSS20;
} else {
- if (BuildConfig.DEBUG) Log.d(TAG, "Type is invalid");
+ if (AppConfig.DEBUG) Log.d(TAG, "Type is invalid");
throw new UnsupportedFeedtypeException(Type.INVALID);
}
} else {
@@ -60,7 +60,7 @@ public class TypeGetter {
} catch (IOException e) {
e.printStackTrace();
}
- if (BuildConfig.DEBUG) Log.d(TAG, "Type is invalid");
+ if (AppConfig.DEBUG) Log.d(TAG, "Type is invalid");
throw new UnsupportedFeedtypeException(Type.INVALID);
}