From ed7ca86b04c3912aac41ddf15a63261a757a6743 Mon Sep 17 00:00:00 2001 From: morckx Date: Fri, 23 Nov 2018 21:10:50 +0100 Subject: [PATCH] Don't forget to set actionBarSubTitle visibility when drawer is null --- app/ui/src/main/java/com/fsck/k9/activity/MessageList.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/ui/src/main/java/com/fsck/k9/activity/MessageList.java b/app/ui/src/main/java/com/fsck/k9/activity/MessageList.java index d1dc971a3..df6a2217a 100644 --- a/app/ui/src/main/java/com/fsck/k9/activity/MessageList.java +++ b/app/ui/src/main/java/com/fsck/k9/activity/MessageList.java @@ -1698,6 +1698,10 @@ public class MessageList extends K9Activity implements MessageListFragmentListen List 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); } }