'up'-buttons now work as expected

This commit is contained in:
daniel oeh 2012-07-18 10:56:24 +02:00
parent f49ec6e537
commit 532a167a48
3 changed files with 3 additions and 3 deletions

View File

@ -89,7 +89,7 @@ public class FlattrAuthActivity extends SherlockActivity {
public boolean onOptionsItemSelected(MenuItem item) { public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) { switch (item.getItemId()) {
case android.R.id.home: case android.R.id.home:
finish(); startActivity(new Intent(this, PreferenceActivity.class));
break; break;
default: default:
return false; return false;

View File

@ -142,7 +142,7 @@ public class MediaplayerActivity extends SherlockFragmentActivity implements
public boolean onOptionsItemSelected(MenuItem item) { public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) { switch (item.getItemId()) {
case android.R.id.home: case android.R.id.home:
finish(); startActivity(new Intent(MediaplayerActivity.this, MainActivity.class));
break; break;
default: default:
return FeedItemMenuHandler.onMenuItemClicked(this, item, return FeedItemMenuHandler.onMenuItemClicked(this, item,

View File

@ -84,7 +84,7 @@ public class PreferenceActivity extends SherlockPreferenceActivity {
public boolean onOptionsItemSelected(MenuItem item) { public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) { switch (item.getItemId()) {
case android.R.id.home: case android.R.id.home:
finish(); startActivity(new Intent(PreferenceActivity.this, MainActivity.class));
break; break;
default: default:
return false; return false;