Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ed7ca86b authored by morckx's avatar morckx
Browse files

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

parent 7f8894c8
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -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);
    }
}