Fix OpenSearch import icon URL

This commit is contained in:
MM20 2022-02-24 18:49:55 +01:00
parent 2f43dab260
commit a20fb0362b
No known key found for this signature in database
GPG Key ID: 0B61A8F2DEAFA389

View File

@ -147,6 +147,7 @@ internal class WebsearchRepositoryImpl(
val size =
parser.getAttributeValue(null, "width")?.toIntOrNull() ?: 0
if (size > iconSize || iconUrl == null) {
parser.next()
if (parser.eventType == XmlPullParser.TEXT) {
iconUrl = parser.text
iconSize = size