1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-12-25 00:58:50 -05:00

Have the icon function as 'up' instead of 'home'.

This commit is contained in:
Sander Bogaert 2012-07-25 18:10:30 -04:00 committed by Andrew Chen
parent 7ce6f0d5e1
commit 85fc76c10b
3 changed files with 6 additions and 6 deletions

View File

@ -306,6 +306,7 @@ public class FolderList extends K9ListActivity implements OnNavigationListener {
requestWindowFeature(Window.FEATURE_PROGRESS);
ActionBar actionBar = getSupportActionBar();
actionBar.setDisplayHomeAsUpEnabled(true);
actionBar.setDisplayShowTitleEnabled(false);
actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_LIST);
@ -557,8 +558,7 @@ public class FolderList extends K9ListActivity implements OnNavigationListener {
@Override public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
case android.R.id.home:
Accounts.listAccountsClearTop(this);
finish();
onAccounts();
return true;

View File

@ -914,6 +914,7 @@ public class MessageList extends K9ListActivity implements
}
});
mActionBar.setDisplayHomeAsUpEnabled(true);
mActionBar.setCustomView(mCustomRefreshView);
mActionBar.setDisplayOptions(ActionBar.DISPLAY_SHOW_CUSTOM,
ActionBar.DISPLAY_SHOW_CUSTOM);
@ -1461,9 +1462,7 @@ public class MessageList extends K9ListActivity implements
int itemId = item.getItemId();
switch (itemId) {
case android.R.id.home: {
// app icon in action bar clicked; go home
Accounts.listAccountsClearTop(this);
finish();
onShowFolderList();
return true;
}
case R.id.compose: {

View File

@ -318,6 +318,8 @@ public class MessageView extends K9Activity implements OnClickListener {
requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
setContentView(R.layout.message_view);
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
mMessageView = (SingleMessageView) findViewById(R.id.message_view);
//set a callback for the attachment view. With this callback the attachmentview
@ -853,7 +855,6 @@ public class MessageView extends K9Activity implements OnClickListener {
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
case android.R.id.home:
Accounts.listAccountsClearTop(this);
finish();
break;
case R.id.delete: