diff --git a/AndroidManifest.xml b/AndroidManifest.xml index a27d9661..39783d68 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -1,8 +1,8 @@ + android:versionCode="111" + android:versionName="0.8.10" > +].*?"); for (Attachment a : m_article.attachments) { if (a.content_type != null && a.content_url != null) { try { - URL url = new URL(a.content_url.trim()); - String strUrl = url.toString().trim(); - - String regex = String.format("

"; } - - spinnerArray.add(a); } catch (MalformedURLException e) { // } catch (Exception e) { e.printStackTrace(); } - + + spinnerArray.add(a); } } diff --git a/src/org/fox/ttrss/ArticlePager.java b/src/org/fox/ttrss/ArticlePager.java index bc4e367a..b64d5642 100644 --- a/src/org/fox/ttrss/ArticlePager.java +++ b/src/org/fox/ttrss/ArticlePager.java @@ -47,6 +47,11 @@ public class ArticlePager extends Fragment { if (article != null) { ArticleFragment af = new ArticleFragment(article); + + if (m_prefs.getBoolean("dim_status_bar", false) && getView() != null) { + getView().setSystemUiVisibility(View.STATUS_BAR_HIDDEN); + } + return af; } return null; @@ -127,11 +132,6 @@ public class ArticlePager extends Fragment { } }); - - if (m_prefs.getBoolean("dim_status_bar", false)) { - view.setSystemUiVisibility(View.STATUS_BAR_HIDDEN); - } - return view; } diff --git a/src/org/fox/ttrss/offline/OfflineArticlePager.java b/src/org/fox/ttrss/offline/OfflineArticlePager.java index 7e9384ca..bc138bb0 100644 --- a/src/org/fox/ttrss/offline/OfflineArticlePager.java +++ b/src/org/fox/ttrss/offline/OfflineArticlePager.java @@ -79,6 +79,11 @@ public class OfflineArticlePager extends Fragment { Log.d(TAG, "getItem: " + position); if (m_cursor.moveToPosition(position)) { + + if (m_prefs.getBoolean("dim_status_bar", false) && getView() != null) { + getView().setSystemUiVisibility(View.STATUS_BAR_HIDDEN); + } + return new OfflineArticleFragment(m_cursor.getInt(m_cursor.getColumnIndex(BaseColumns._ID))); } diff --git a/src/org/fox/ttrss/types/Article.java b/src/org/fox/ttrss/types/Article.java index 6db4b938..8e619b4b 100644 --- a/src/org/fox/ttrss/types/Article.java +++ b/src/org/fox/ttrss/types/Article.java @@ -24,6 +24,7 @@ public class Article implements Parcelable { public String feed_title; public int comments_count; public String comments_link; + public boolean always_display_attachments; public Article(Parcel in) { readFromParcel(in); @@ -60,6 +61,9 @@ public class Article implements Parcelable { out.writeString(content); out.writeList(attachments); out.writeString(feed_title); + out.writeInt(comments_count); + out.writeString(comments_link); + out.writeInt(always_display_attachments ? 1 : 0); } public void readFromParcel(Parcel in) { @@ -82,6 +86,10 @@ public class Article implements Parcelable { in.readList(attachments, Attachment.class.getClassLoader()); feed_title = in.readString(); + + comments_count = in.readInt(); + comments_link = in.readString(); + always_display_attachments = in.readInt() == 1; } @SuppressWarnings("rawtypes")