From 9af5dd1fb592ace719843b902a38844b1442c10a Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 25 Jun 2013 10:48:03 +0400 Subject: [PATCH] fix "read more" links not working properly in embedded browser bump version --- AndroidManifest.xml | 4 ++-- src/org/fox/ttrss/ArticleFragment.java | 11 ++++++++++- .../fox/ttrss/offline/OfflineArticleFragment.java | 12 +++++++++++- 3 files changed, 23 insertions(+), 4 deletions(-) diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 3946040c..a7526b3c 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -1,8 +1,8 @@ + android:versionCode="189" + android:versionName="1.8.9" > " + articleContent + "

 

 

 

 

"; 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) { e.printStackTrace(); }