Don't forget to set actionBarSubTitle visibility when drawer is null

This commit is contained in:
morckx 2018-11-23 21:10:50 +01:00
parent 7f8894c8f9
commit ed7ca86b04

View file

@ -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);
}
}