From 3da48391d6f4c7334c8c81558a8e689e64b11153 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 17 Sep 2012 23:35:52 +0400 Subject: [PATCH] fix home button on feeds activity --- src/org/fox/ttrss/HeadlinesActivity.java | 5 +---- src/org/fox/ttrss/OnlineActivity.java | 3 +++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/org/fox/ttrss/HeadlinesActivity.java b/src/org/fox/ttrss/HeadlinesActivity.java index ef642e88..b76a1a0e 100644 --- a/src/org/fox/ttrss/HeadlinesActivity.java +++ b/src/org/fox/ttrss/HeadlinesActivity.java @@ -87,10 +87,7 @@ public class HeadlinesActivity extends OnlineActivity implements HeadlinesEventL @Override public boolean onOptionsItemSelected(MenuItem item) { - switch (item.getItemId()) { - case android.R.id.home: - finish(); - return true; + switch (item.getItemId()) { default: Log.d(TAG, "onOptionsItemSelected, unhandled id=" + item.getItemId()); return super.onOptionsItemSelected(item); diff --git a/src/org/fox/ttrss/OnlineActivity.java b/src/org/fox/ttrss/OnlineActivity.java index e6053aa0..20871563 100644 --- a/src/org/fox/ttrss/OnlineActivity.java +++ b/src/org/fox/ttrss/OnlineActivity.java @@ -439,6 +439,9 @@ public class OnlineActivity extends CommonActivity { final ArticlePager ap = (ArticlePager)getSupportFragmentManager().findFragmentByTag(FRAG_ARTICLE); switch (item.getItemId()) { + case android.R.id.home: + finish(); + return true; case R.id.logout: logout(); return true;