mirror of
https://github.com/moparisthebest/k-9
synced 2024-12-25 09:08:49 -05:00
Have the icon function as 'up' instead of 'home'.
This commit is contained in:
parent
7ce6f0d5e1
commit
85fc76c10b
@ -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;
|
||||
|
||||
|
@ -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: {
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user