fix "read more" links not working properly in embedded browser
bump version
This commit is contained in:
parent
9c729d9a06
commit
9af5dd1fb5
@ -1,8 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
package="org.fox.ttrss"
|
package="org.fox.ttrss"
|
||||||
android:versionCode="188"
|
android:versionCode="189"
|
||||||
android:versionName="1.8.8" >
|
android:versionName="1.8.9" >
|
||||||
|
|
||||||
<uses-sdk
|
<uses-sdk
|
||||||
android:minSdkVersion="8"
|
android:minSdkVersion="8"
|
||||||
|
@ -286,7 +286,16 @@ public class ArticleFragment extends Fragment implements GestureDetector.OnDoubl
|
|||||||
content += "<p> </p><p> </p><p> </p><p> </p></body></html>";
|
content += "<p> </p><p> </p><p> </p><p> </p></body></html>";
|
||||||
|
|
||||||
try {
|
try {
|
||||||
web.loadDataWithBaseURL(m_article.link, content, "text/html", "utf-8", null);
|
String baseUrl = null;
|
||||||
|
|
||||||
|
try {
|
||||||
|
URL url = new URL(m_article.link);
|
||||||
|
baseUrl = url.getProtocol() + "://" + url.getHost();
|
||||||
|
} catch (MalformedURLException e) {
|
||||||
|
//
|
||||||
|
}
|
||||||
|
|
||||||
|
web.loadDataWithBaseURL(baseUrl, content, "text/html", "utf-8", null);
|
||||||
} catch (RuntimeException e) {
|
} catch (RuntimeException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
package org.fox.ttrss.offline;
|
package org.fox.ttrss.offline;
|
||||||
|
|
||||||
|
import java.net.MalformedURLException;
|
||||||
import java.net.URI;
|
import java.net.URI;
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
import java.text.DateFormat;
|
import java.text.DateFormat;
|
||||||
@ -281,7 +282,16 @@ public class OfflineArticleFragment extends Fragment implements GestureDetector.
|
|||||||
"<body>" + articleContent + "<p> </p><p> </p><p> </p><p> </p></body></html>";
|
"<body>" + articleContent + "<p> </p><p> </p><p> </p><p> </p></body></html>";
|
||||||
|
|
||||||
try {
|
try {
|
||||||
web.loadDataWithBaseURL(link, content, "text/html", "utf-8", null);
|
String baseUrl = null;
|
||||||
|
|
||||||
|
try {
|
||||||
|
URL url = new URL(link);
|
||||||
|
baseUrl = url.getProtocol() + "://" + url.getHost();
|
||||||
|
} catch (MalformedURLException e) {
|
||||||
|
//
|
||||||
|
}
|
||||||
|
|
||||||
|
web.loadDataWithBaseURL(baseUrl, content, "text/html", "utf-8", null);
|
||||||
} catch (RuntimeException e) {
|
} catch (RuntimeException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user