Fix opml elements not showing title (#6988)

This commit is contained in:
ByteHamster 2024-03-11 23:09:00 +01:00 committed by GitHub
parent 0848364810
commit 8177875674
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ public class OpmlReader {
element.setHtmlUrl(xpp.getAttributeValue(null, OpmlSymbols.HTMLURL));
element.setType(xpp.getAttributeValue(null, OpmlSymbols.TYPE));
if (!TextUtils.isEmpty(element.getXmlUrl())) {
if (!TextUtils.isEmpty(element.getText())) {
if (TextUtils.isEmpty(element.getText())) {
Log.i(TAG, "Opml element has no text attribute.");
element.setText(element.getXmlUrl());
}