         let sucess = { (results: WMFSearchResults, type: WMFSearchType) in
             DispatchQueue.main.async {
                 commonCompletion()
-                self.areResultsVisible = true
                 self.fakeProgressController.finish()
                 guard
                     let resultsArray = results.results,

        searchBar.apply(theme: theme)
        searchLanguageBarViewController.apply(theme: theme)
        resultsViewController.apply(theme: theme)
        resultsViewController.collectionView.backgroundColor = theme.colors.paperBackground
        view.backgroundColor = .clear
        collectionView.backgroundColor = theme.colors.paperBackground
    }

        navigationBar.addUnderNavigationBarView(searchBarContainerView)
        updateLanguageBarVisibility()
        navigationBar.isInteractiveHidingEnabled  = false
        view.bringSubview(toFront: resultsViewController.view)
    }
    
    var canSearchBarEndEditing: Bool = false
    override func viewWillAppear(_ animated: Bool) {
        super.viewWillAppear(animated)
        canSearchBarEndEditing = false
        navigationBar.isBarHidingEnabled = true
        navigationBar.setNavigationBarPercentHidden(1, underBarViewPercentHidden: 0, extendedViewPercentHidden: 0, animated: animated && shouldAnimateSearchBar, additionalAnimations: {
            self.canSearchBarEndEditing = true
            self.updateScrollViewInsets()
        })
        navigationBar.isBarHidingEnabled = false
        searchBar.setShowsCancelButton(true, animated: animated && shouldAnimateSearchBar)
        if animated && shouldBecomeFirstResponder {
