diff options
author | Andrew Dolgov <[email protected]> | 2012-09-20 23:10:23 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2012-09-20 23:10:23 +0400 |
commit | 2a02f4b211650b68acc1c38c02958b4d08b44aea (patch) | |
tree | ff616f0ad6ae0db48e2101cca8755d6325641107 /src/org | |
parent | f1d50cad486eac88aeeda8be8735cb07325186b1 (diff) |
further use handlers in onArticleSelected()
Diffstat (limited to 'src/org')
-rw-r--r-- | src/org/fox/ttrss/HeadlinesActivity.java | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/src/org/fox/ttrss/HeadlinesActivity.java b/src/org/fox/ttrss/HeadlinesActivity.java index 9d1f07fa..2dee2fbd 100644 --- a/src/org/fox/ttrss/HeadlinesActivity.java +++ b/src/org/fox/ttrss/HeadlinesActivity.java @@ -157,13 +157,20 @@ public class HeadlinesActivity extends OnlineActivity implements HeadlinesEventL }
if (open) {
- FragmentTransaction ft = getSupportFragmentManager()
- .beginTransaction();
- ArticlePager af = (ArticlePager) getSupportFragmentManager().findFragmentByTag(FRAG_ARTICLE);
- af.setActiveArticle(article);
+ final Article fArticle = article;
- ft.commit();
+ new Handler().postDelayed(new Runnable() {
+ @Override
+ public void run() {
+ ArticlePager af = (ArticlePager) getSupportFragmentManager().findFragmentByTag(FRAG_ARTICLE);
+
+ if (af != null) {
+ af.setActiveArticle(fArticle);
+ }
+ }
+ }, 10);
+
} else {
HeadlinesFragment hf = (HeadlinesFragment) getSupportFragmentManager().findFragmentByTag(FRAG_HEADLINES);
if (hf != null) {
|