fix possible crash in HeadlinesActivity.onArticleSelected
This commit is contained in:
parent
2c71f2e829
commit
cb13303442
@ -201,8 +201,10 @@ public class HeadlinesActivity extends OnlineActivity implements HeadlinesEventL
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
HeadlinesFragment hf = (HeadlinesFragment) getSupportFragmentManager().findFragmentByTag(FRAG_HEADLINES);
|
HeadlinesFragment hf = (HeadlinesFragment) getSupportFragmentManager().findFragmentByTag(FRAG_HEADLINES);
|
||||||
|
if (hf != null) {
|
||||||
hf.setActiveArticle(article);
|
hf.setActiveArticle(article);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
GlobalState.getInstance().m_activeArticle = article;
|
GlobalState.getInstance().m_activeArticle = article;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user