fix home button on feeds activity

This commit is contained in:
Andrew Dolgov 2012-09-17 23:35:52 +04:00
parent 84a766213d
commit 3da48391d6
2 changed files with 4 additions and 4 deletions

View File

@ -87,10 +87,7 @@ public class HeadlinesActivity extends OnlineActivity implements HeadlinesEventL
@Override @Override
public boolean onOptionsItemSelected(MenuItem item) { public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) { switch (item.getItemId()) {
case android.R.id.home:
finish();
return true;
default: default:
Log.d(TAG, "onOptionsItemSelected, unhandled id=" + item.getItemId()); Log.d(TAG, "onOptionsItemSelected, unhandled id=" + item.getItemId());
return super.onOptionsItemSelected(item); return super.onOptionsItemSelected(item);

View File

@ -439,6 +439,9 @@ public class OnlineActivity extends CommonActivity {
final ArticlePager ap = (ArticlePager)getSupportFragmentManager().findFragmentByTag(FRAG_ARTICLE); final ArticlePager ap = (ArticlePager)getSupportFragmentManager().findFragmentByTag(FRAG_ARTICLE);
switch (item.getItemId()) { switch (item.getItemId()) {
case android.R.id.home:
finish();
return true;
case R.id.logout: case R.id.logout:
logout(); logout();
return true; return true;