Merge branch 'readonly-p4-donut' into donut
This commit is contained in:
commit
cf4a3aea3f
@ -129,6 +129,14 @@
|
||||
<string name="special_mailbox_name_trash">Trash</string>
|
||||
<!-- Do Not Translate. This is the name of the "sent" folder, on the server. -->
|
||||
<string name="special_mailbox_name_sent">Sent</string>
|
||||
<!-- In the folder list view, the outbox will be displayed with this name -->
|
||||
<string name="special_mailbox_display_name_outbox">Outbox</string>
|
||||
<!-- In the folder list view, the drafts will be displayed with this name -->
|
||||
<string name="special_mailbox_display_name_drafts">Drafts</string>
|
||||
<!-- In the folder list view, the trash will be displayed with this name -->
|
||||
<string name="special_mailbox_display_name_trash">Trash</string>
|
||||
<!-- In the folder list view, the sent will be displayed with this name -->
|
||||
<string name="special_mailbox_display_name_sent">Sent</string>
|
||||
<!-- Text on screen when you don't have any external email accounts set up -->
|
||||
<string name="accounts_welcome">Welcome to Email setup!\n\nUse any email account with Email.\n\nMost popular email accounts can be set up in 2 steps!</string>
|
||||
|
||||
|
@ -1036,23 +1036,29 @@ public class FolderMessageList extends ExpandableListActivity {
|
||||
}
|
||||
|
||||
/*
|
||||
* Set special folder boolean indicator in FolderInfoHolder
|
||||
* Set special folder boolean indicator and display name in FolderInfoHolder
|
||||
*/
|
||||
private void setSpecialFolderIndicator(FolderInfoHolder holder) {
|
||||
private void setSpecialFolderInfo(FolderInfoHolder holder) {
|
||||
String folderName = holder.name;
|
||||
holder.special = true;
|
||||
if (folderName.equalsIgnoreCase(Email.INBOX)) {
|
||||
holder.inbox = true;
|
||||
holder.displayName = getString(R.string.special_mailbox_name_inbox);
|
||||
} else if (folderName.equals(mAccount.getDraftsFolderName())) {
|
||||
holder.drafts = true;
|
||||
holder.displayName = getString(R.string.special_mailbox_display_name_drafts);
|
||||
} else if (folderName.equals(mAccount.getOutboxFolderName())) {
|
||||
holder.outbox = true;
|
||||
holder.displayName = getString(R.string.special_mailbox_display_name_outbox);
|
||||
} else if (folderName.equals(mAccount.getSentFolderName())) {
|
||||
holder.sent = true;
|
||||
holder.displayName = getString(R.string.special_mailbox_display_name_sent);
|
||||
} else if (folderName.equals(mAccount.getTrashFolderName())) {
|
||||
holder.trash = true;
|
||||
holder.displayName = getString(R.string.special_mailbox_display_name_trash);
|
||||
} else {
|
||||
holder.special = false;
|
||||
holder.displayName = folderName;
|
||||
}
|
||||
}
|
||||
|
||||
@ -1068,13 +1074,7 @@ public class FolderMessageList extends ExpandableListActivity {
|
||||
mFolders.add(holder);
|
||||
}
|
||||
holder.name = folder.getName();
|
||||
if (holder.name.equalsIgnoreCase(Email.INBOX)) {
|
||||
holder.displayName = getString(R.string.special_mailbox_name_inbox);
|
||||
}
|
||||
else {
|
||||
holder.displayName = folder.getName();
|
||||
}
|
||||
setSpecialFolderIndicator(holder);
|
||||
setSpecialFolderInfo(holder);
|
||||
if (holder.messages == null) {
|
||||
holder.messages = new ArrayList<MessageInfoHolder>();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user