Commit 961d6949 authored by Adrien Dorsaz's avatar Adrien Dorsaz

Fix onPause() to give new article state.

parent c51933c6
......@@ -90,12 +90,15 @@ public class ArticleDetailActivity extends Activity implements OnClickListener {
}
}
/*
* @Override public void onPause(){ Intent intent = new
* Intent(ArticleDetailActivity.this, ArticleListActivity.class);
* intent.putExtra(ArticleListActivity.ARTICLE_KEY, mArticle);
* startActivity(intent); }
*/
@Override
public void onPause() {
super.onPause();
Intent intent = new Intent(ArticleDetailActivity.this,
ArticleListActivity.class);
intent.putExtra(ArticleListActivity.ARTICLE_KEY, mArticle);
startActivity(intent);
finish();
}
public void updateReadButton() {
if (mArticle.isRead()) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment