diff options
author | daniel oeh <daniel.oeh@gmail.com> | 2013-04-20 12:25:45 +0200 |
---|---|---|
committer | daniel oeh <daniel.oeh@gmail.com> | 2013-04-20 12:25:45 +0200 |
commit | 1ad54cb21ada2331ce0b7387a34456921c1be9bf (patch) | |
tree | 332eb553d8c45de13585699e8470dc2b5e6f1b5d /src/de/danoeh/antennapod/activity | |
parent | 8be08bcddbc09ab5d08c4517e3bbdd7db4747d7d (diff) | |
download | AntennaPod-1ad54cb21ada2331ce0b7387a34456921c1be9bf.zip |
Removed 'accept' button in OrganizeQueueActivity
Diffstat (limited to 'src/de/danoeh/antennapod/activity')
-rw-r--r-- | src/de/danoeh/antennapod/activity/OrganizeQueueActivity.java | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/src/de/danoeh/antennapod/activity/OrganizeQueueActivity.java b/src/de/danoeh/antennapod/activity/OrganizeQueueActivity.java index 9483defc8..81b797c32 100644 --- a/src/de/danoeh/antennapod/activity/OrganizeQueueActivity.java +++ b/src/de/danoeh/antennapod/activity/OrganizeQueueActivity.java @@ -39,6 +39,7 @@ public class OrganizeQueueActivity extends SherlockListActivity implements setTheme(UserPreferences.getTheme()); super.onCreate(savedInstanceState); setContentView(R.layout.organize_queue); + getSupportActionBar().setDisplayHomeAsUpEnabled(true); DragSortListView listView = (DragSortListView) getListView(); listView.setDropListener(dropListener); @@ -52,12 +53,20 @@ public class OrganizeQueueActivity extends SherlockListActivity implements } @Override - protected void onPause() { + protected void onStop() { super.onPause(); EventDistributor.getInstance().unregister(contentUpdate); } @Override + protected void onDestroy() { + super.onDestroy(); + FeedManager.getInstance().autodownloadUndownloadedItems( + getApplicationContext()); + + } + + @Override protected void onResume() { super.onResume(); EventDistributor.getInstance().register(contentUpdate); @@ -101,21 +110,13 @@ public class OrganizeQueueActivity extends SherlockListActivity implements @Override public boolean onCreateOptionsMenu(Menu menu) { super.onCreateOptionsMenu(menu); - TypedArray drawables = obtainStyledAttributes(new int[] { R.attr.navigation_accept }); - menu.add(Menu.NONE, MENU_ID_ACCEPT, Menu.NONE, R.string.confirm_label) - .setIcon(drawables.getDrawable(0)) - .setShowAsAction( - MenuItem.SHOW_AS_ACTION_IF_ROOM - | MenuItem.SHOW_AS_ACTION_WITH_TEXT); return true; } @Override public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { - case MENU_ID_ACCEPT: - FeedManager.getInstance().autodownloadUndownloadedItems( - getApplicationContext()); + case android.R.id.home: finish(); return true; default: |