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

Have a dynamic subtitle for the MessageList action bar too.

This commit is contained in:
Sander Bogaert 2012-08-28 14:20:46 -04:00 committed by Andrew Chen
parent 1036fe531d
commit c0e483d2b9

View File

@ -519,8 +519,13 @@ public class MessageList extends K9ListActivity implements OnItemClickListener,
mFolderName);
mActionBarTitle.setText(displayName);
mActionBarSubTitle.setText(mAccount.getEmail());
String operation = mAdapter.mListener.getOperation(MessageList.this, getTimeFormat()).trim();
if (operation.length() < 1) {
mActionBarSubTitle.setText(mAccount.getEmail());
} else {
mActionBarSubTitle.setText(operation);
}
// query result display
} else if (mQueryString != null) {
if (mTitle != null) {