Add Atom lang support
This commit is contained in:
parent
3bc51b7a54
commit
96468f0e85
|
@ -45,6 +45,12 @@ public class TypeGetter {
|
|||
case ATOM_ROOT:
|
||||
feed.setType(Feed.TYPE_ATOM1);
|
||||
Log.d(TAG, "Recognized type Atom");
|
||||
|
||||
String strLang = xpp.getAttributeValue("http://www.w3.org/XML/1998/namespace", "lang");
|
||||
if (strLang != null) {
|
||||
feed.setLanguage(strLang);
|
||||
}
|
||||
|
||||
return Type.ATOM;
|
||||
case RSS_ROOT:
|
||||
String strVersion = xpp.getAttributeValue(null, "version");
|
||||
|
|
Loading…
Reference in New Issue