Fix telegram build

This commit is contained in:
crimean 2019-01-18 21:00:32 +03:00
parent 4eff967cac
commit 74c93b7bdf
2 changed files with 4 additions and 4 deletions

View file

@ -146,6 +146,4 @@ dependencies {
implementation("com.github.HITGIF:TextFieldBoxes:1.4.4") {
exclude group: 'com.android.support'
}
implementation 'net.sf.kxml:kxml2:2.1.8'
}

View file

@ -1,5 +1,7 @@
package net.osmand;
import android.util.Xml;
import org.apache.commons.logging.Log;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;
@ -147,10 +149,10 @@ public class PlatformUtil {
}
public static XmlPullParser newXMLPullParser() throws XmlPullParserException {
return new org.kxml2.io.KXmlParser();
return Xml.newPullParser();
}
public static XmlSerializer newSerializer() {
return new org.kxml2.io.KXmlSerializer();
return Xml.newSerializer();
}
}