Don't forget to set actionBarSubTitle visibility when drawer is null
This commit is contained in:
parent
7f8894c8f9
commit
ed7ca86b04
1 changed files with 4 additions and 3 deletions
|
@ -1698,6 +1698,10 @@ public class MessageList extends K9Activity implements MessageListFragmentListen
|
|||
|
||||
List<String> folderServerIds = search.getFolderServerIds();
|
||||
singleFolderMode = singleAccountMode && folderServerIds.size() == 1;
|
||||
|
||||
// now we know if we are in single account mode and need a subtitle
|
||||
actionBarSubTitle.setVisibility((!singleFolderMode) ? View.GONE : View.VISIBLE);
|
||||
|
||||
if (drawer == null) {
|
||||
return;
|
||||
} else if (singleFolderMode) {
|
||||
|
@ -1707,8 +1711,5 @@ public class MessageList extends K9Activity implements MessageListFragmentListen
|
|||
} else {
|
||||
drawer.selectFolder(null);
|
||||
}
|
||||
|
||||
// now we know if we are in single account mode and need a subtitle
|
||||
actionBarSubTitle.setVisibility((!singleFolderMode) ? View.GONE : View.VISIBLE);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue