parent
14769a4019
commit
2b4bc5ef32
@ -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="67"
|
android:versionCode="68"
|
||||||
android:versionName="0.5.3" >
|
android:versionName="0.5.4" >
|
||||||
|
|
||||||
<uses-sdk android:minSdkVersion="7" />
|
<uses-sdk android:minSdkVersion="7" />
|
||||||
|
|
||||||
|
@ -167,14 +167,16 @@ public class ArticleFragment extends Fragment {
|
|||||||
String attachments = "<div class=\"attachments\">" + getString(R.string.attachments) + " ";
|
String attachments = "<div class=\"attachments\">" + getString(R.string.attachments) + " ";
|
||||||
|
|
||||||
for (Attachment a : m_article.attachments) {
|
for (Attachment a : m_article.attachments) {
|
||||||
if (a.content_type != null && a.content_url != null && a.content_type.indexOf("image") != -1) {
|
if (a.content_type != null && a.content_url != null) {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
URL url = new URL(a.content_url.trim());
|
URL url = new URL(a.content_url.trim());
|
||||||
|
|
||||||
String atitle = (a.title != null && a.title.length() > 0) ? a.title : new File(url.getFile()).getName();
|
String atitle = (a.title != null && a.title.length() > 0) ? a.title : new File(url.getFile()).getName();
|
||||||
|
|
||||||
|
if (a.content_type.indexOf("image") != -1) {
|
||||||
content += "<br/><img src=\"" + url.toString().trim().replace("\"", "\\\"") + "\">";
|
content += "<br/><img src=\"" + url.toString().trim().replace("\"", "\\\"") + "\">";
|
||||||
|
}
|
||||||
|
|
||||||
attachments += "<a href=\""+url.toString().trim().replace("\"", "\\\"") + "\">" + atitle + "</a>, ";
|
attachments += "<a href=\""+url.toString().trim().replace("\"", "\\\"") + "\">" + atitle + "</a>, ";
|
||||||
|
|
||||||
|
@ -448,14 +448,16 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener,
|
|||||||
String attachments = "<div style=\"font-size : 70%; margin-top : 1em;\">" + getString(R.string.attachments) + " ";
|
String attachments = "<div style=\"font-size : 70%; margin-top : 1em;\">" + getString(R.string.attachments) + " ";
|
||||||
|
|
||||||
for (Attachment a : article.attachments) {
|
for (Attachment a : article.attachments) {
|
||||||
if (a.content_type != null && a.content_url != null && a.content_type.indexOf("image") != -1) {
|
if (a.content_type != null && a.content_url != null) {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
URL url = new URL(a.content_url.trim());
|
URL url = new URL(a.content_url.trim());
|
||||||
|
|
||||||
String atitle = (a.title != null && a.title.length() > 0) ? a.title : new File(url.getFile()).getName();
|
String atitle = (a.title != null && a.title.length() > 0) ? a.title : new File(url.getFile()).getName();
|
||||||
|
|
||||||
|
if (a.content_type.indexOf("image") != -1) {
|
||||||
articleContent += "<br/><img src=\"" + url.toString().trim().replace("\"", "\\\"") + "\">";
|
articleContent += "<br/><img src=\"" + url.toString().trim().replace("\"", "\\\"") + "\">";
|
||||||
|
}
|
||||||
|
|
||||||
attachments += "<a href=\""+url.toString().trim().replace("\"", "\\\"") + "\">" + atitle + "</a>, ";
|
attachments += "<a href=\""+url.toString().trim().replace("\"", "\\\"") + "\">" + atitle + "</a>, ";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user