1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-12-26 09:38:52 -05:00

Abbriviate long foldernames.

This commit is contained in:
Sander Bogaert 2012-07-26 10:18:51 -04:00 committed by Andrew Chen
parent 9f568e3e08
commit 9c9763154e

View File

@ -517,7 +517,13 @@ public class MessageList extends K9ListActivity implements
// regular folder content display
if (mFolderName != null) {
mNavigationSpinner.setTitle(mFolderName+" ["+mUnreadMessageCount+"]");
String folderNameProc = mFolderName;
if (folderNameProc.length() > 15) {
folderNameProc = mFolderName.substring(0, 15) + "...";
}
mNavigationSpinner.setTitle(folderNameProc + " [" + mUnreadMessageCount + "]");
mNavigationSpinner.setSubTitle(mAccount.getEmail());
// query result display
@ -526,7 +532,6 @@ public class MessageList extends K9ListActivity implements
setTitle(mTitle);
} else {
setTitle(getString(R.string.search_results));
//setSubTitle(mQueryString);
}
}
}