From 74c93b7bdf665bde852c0b7100bab2f436d5adc1 Mon Sep 17 00:00:00 2001 From: crimean Date: Fri, 18 Jan 2019 21:00:32 +0300 Subject: [PATCH] Fix telegram build --- OsmAnd-telegram/build.gradle | 2 -- OsmAnd-telegram/src/net/osmand/PlatformUtil.java | 6 ++++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/OsmAnd-telegram/build.gradle b/OsmAnd-telegram/build.gradle index f7976040af..57141c4238 100644 --- a/OsmAnd-telegram/build.gradle +++ b/OsmAnd-telegram/build.gradle @@ -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' } diff --git a/OsmAnd-telegram/src/net/osmand/PlatformUtil.java b/OsmAnd-telegram/src/net/osmand/PlatformUtil.java index 26a8b13c67..f1d8143948 100644 --- a/OsmAnd-telegram/src/net/osmand/PlatformUtil.java +++ b/OsmAnd-telegram/src/net/osmand/PlatformUtil.java @@ -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(); } }