From 4a7b6d439edfad289a7cc1f34de4bf1dc2509e0b Mon Sep 17 00:00:00 2001 From: daniel oeh Date: Sun, 22 Jul 2012 13:06:25 +0200 Subject: Replaced buildconfig condition with appconfig condition --- src/de/danoeh/antennapod/syndication/handler/SyndHandler.java | 10 +++++----- src/de/danoeh/antennapod/syndication/handler/TypeGetter.java | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) (limited to 'src/de/danoeh/antennapod/syndication/handler') diff --git a/src/de/danoeh/antennapod/syndication/handler/SyndHandler.java b/src/de/danoeh/antennapod/syndication/handler/SyndHandler.java index 808b3f0f9..d281fb021 100644 --- a/src/de/danoeh/antennapod/syndication/handler/SyndHandler.java +++ b/src/de/danoeh/antennapod/syndication/handler/SyndHandler.java @@ -6,7 +6,7 @@ import org.xml.sax.helpers.DefaultHandler; import android.util.Log; -import de.danoeh.antennapod.BuildConfig; +import de.danoeh.antennapod.AppConfig; import de.danoeh.antennapod.feed.Feed; import de.danoeh.antennapod.syndication.namespace.Namespace; import de.danoeh.antennapod.syndication.namespace.SyndElement; @@ -83,17 +83,17 @@ public class SyndHandler extends DefaultHandler { state.defaultNamespaces.push(new NSAtom()); } else if (prefix.equals(NSAtom.NSTAG)) { state.namespaces.put(uri, new NSAtom()); - if (BuildConfig.DEBUG) Log.d(TAG, "Recognized Atom namespace"); + if (AppConfig.DEBUG) Log.d(TAG, "Recognized Atom namespace"); } } else if (uri.equals(NSContent.NSURI) && prefix.equals(NSContent.NSTAG)) { state.namespaces.put(uri, new NSContent()); - if (BuildConfig.DEBUG) Log.d(TAG, "Recognized Content namespace"); + if (AppConfig.DEBUG) Log.d(TAG, "Recognized Content namespace"); } else if (uri.equals(NSITunes.NSURI) && prefix.equals(NSITunes.NSTAG)) { state.namespaces.put(uri, new NSITunes()); - if (BuildConfig.DEBUG) Log.d(TAG, "Recognized ITunes namespace"); + if (AppConfig.DEBUG) Log.d(TAG, "Recognized ITunes namespace"); } else if (uri.equals(NSSimpleChapters.NSURI) && prefix.equals(NSSimpleChapters.NSTAG)) { state.namespaces.put(uri, new NSSimpleChapters()); - if (BuildConfig.DEBUG) Log.d(TAG, "Recognized SimpleChapters namespace"); + if (AppConfig.DEBUG) Log.d(TAG, "Recognized SimpleChapters namespace"); } } 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); } -- cgit v1.2.3