Removed 'accept' button in OrganizeQueueActivity
This commit is contained in:
parent
8be08bcddb
commit
1ad54cb21a
|
@ -39,6 +39,7 @@ public class OrganizeQueueActivity extends SherlockListActivity implements
|
||||||
setTheme(UserPreferences.getTheme());
|
setTheme(UserPreferences.getTheme());
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
setContentView(R.layout.organize_queue);
|
setContentView(R.layout.organize_queue);
|
||||||
|
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
|
||||||
|
|
||||||
DragSortListView listView = (DragSortListView) getListView();
|
DragSortListView listView = (DragSortListView) getListView();
|
||||||
listView.setDropListener(dropListener);
|
listView.setDropListener(dropListener);
|
||||||
|
@ -52,11 +53,19 @@ public class OrganizeQueueActivity extends SherlockListActivity implements
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onPause() {
|
protected void onStop() {
|
||||||
super.onPause();
|
super.onPause();
|
||||||
EventDistributor.getInstance().unregister(contentUpdate);
|
EventDistributor.getInstance().unregister(contentUpdate);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void onDestroy() {
|
||||||
|
super.onDestroy();
|
||||||
|
FeedManager.getInstance().autodownloadUndownloadedItems(
|
||||||
|
getApplicationContext());
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onResume() {
|
protected void onResume() {
|
||||||
super.onResume();
|
super.onResume();
|
||||||
|
@ -101,21 +110,13 @@ public class OrganizeQueueActivity extends SherlockListActivity implements
|
||||||
@Override
|
@Override
|
||||||
public boolean onCreateOptionsMenu(Menu menu) {
|
public boolean onCreateOptionsMenu(Menu menu) {
|
||||||
super.onCreateOptionsMenu(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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onOptionsItemSelected(MenuItem item) {
|
public boolean onOptionsItemSelected(MenuItem item) {
|
||||||
switch (item.getItemId()) {
|
switch (item.getItemId()) {
|
||||||
case MENU_ID_ACCEPT:
|
case android.R.id.home:
|
||||||
FeedManager.getInstance().autodownloadUndownloadedItems(
|
|
||||||
getApplicationContext());
|
|
||||||
finish();
|
finish();
|
||||||
return true;
|
return true;
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue