diff options
author | daniel oeh <daniel.oeh@gmail.com> | 2012-07-24 14:46:10 +0200 |
---|---|---|
committer | daniel oeh <daniel.oeh@gmail.com> | 2012-07-24 14:46:10 +0200 |
commit | bc089c9e64be34b6a955865e3b6065b8623fb3f2 (patch) | |
tree | 53896c21c09e3a94f49984adbf9e34c60a99aa50 /src/de | |
parent | 8243d0dde6997751def222c8263a93a2ba990cce (diff) | |
download | AntennaPod-bc089c9e64be34b6a955865e3b6065b8623fb3f2.zip |
Fixed behavior of 'up'-buttons
Diffstat (limited to 'src/de')
-rw-r--r-- | src/de/danoeh/antennapod/activity/FeedItemlistActivity.java | 6 | ||||
-rw-r--r-- | src/de/danoeh/antennapod/activity/ItemviewActivity.java | 5 |
2 files changed, 9 insertions, 2 deletions
diff --git a/src/de/danoeh/antennapod/activity/FeedItemlistActivity.java b/src/de/danoeh/antennapod/activity/FeedItemlistActivity.java index 27fb66d53..2f6cfe90e 100644 --- a/src/de/danoeh/antennapod/activity/FeedItemlistActivity.java +++ b/src/de/danoeh/antennapod/activity/FeedItemlistActivity.java @@ -1,5 +1,7 @@ package de.danoeh.antennapod.activity; +import android.annotation.SuppressLint; +import android.content.Intent; import android.graphics.drawable.BitmapDrawable; import android.os.AsyncTask; import android.os.Bundle; @@ -77,6 +79,7 @@ public class FeedItemlistActivity extends SherlockFragmentActivity { return FeedMenuHandler.onPrepareOptionsMenu(menu, feed); } + @SuppressLint("NewApi") @Override public boolean onOptionsItemSelected(MenuItem item) { if (FeedMenuHandler.onOptionsItemClicked(this, item, feed)) { @@ -99,7 +102,8 @@ public class FeedItemlistActivity extends SherlockFragmentActivity { } break; case android.R.id.home: - finish(); + startActivity(new Intent(this, MainActivity.class)); + break; } } return true; diff --git a/src/de/danoeh/antennapod/activity/ItemviewActivity.java b/src/de/danoeh/antennapod/activity/ItemviewActivity.java index 5fed8372f..43fc26314 100644 --- a/src/de/danoeh/antennapod/activity/ItemviewActivity.java +++ b/src/de/danoeh/antennapod/activity/ItemviewActivity.java @@ -2,6 +2,7 @@ package de.danoeh.antennapod.activity; import java.text.DateFormat; +import android.content.Intent; import android.graphics.drawable.BitmapDrawable; import android.os.Bundle; import android.support.v4.app.FragmentManager; @@ -108,7 +109,9 @@ public class ItemviewActivity extends SherlockFragmentActivity { if (!FeedItemMenuHandler.onMenuItemClicked(this, menuItem, item)) { switch (menuItem.getItemId()) { case android.R.id.home: - finish(); + Intent upIntent = new Intent(this, FeedItemlistActivity.class); + upIntent.putExtra(FeedlistFragment.EXTRA_SELECTED_FEED, item.getFeed().getId()); + startActivity(upIntent); break; } } |