     var isAnimatingSearchBarState: Bool = false
  
     override func viewWillAppear(_ animated: Bool) {
+        updateLanguageBarVisibility()
         super.viewWillAppear(animated)
         reloadRecentSearches()
         if animated && shouldBecomeFirstResponder {

    }
    
    private func updateLanguageBarVisibility() {
        if UserDefaults.wmf_userDefaults().wmf_showSearchLanguageBar() { // check this before accessing the view
            let searchLanguageBarViewController = setupLanguageBarViewController()
            addChildViewController(searchLanguageBarViewController)
            searchLanguageBarViewController.view.translatesAutoresizingMaskIntoConstraints = false
            navigationBar.addExtendedNavigationBarView(searchLanguageBarViewController.view)
            searchLanguageBarViewController.didMove(toParentViewController: self)
            searchLanguageBarViewController.view.isHidden = false
        } else {
            searchLanguageBarViewController?.willMove(toParentViewController: nil)
            navigationBar.removeExtendedNavigationBarView()
            searchLanguageBarViewController?.removeFromParentViewController()

            navigationItem.titleView = UIView()
        }
        navigationBar.addUnderNavigationBarView(searchBarContainerView)
        navigationBar.isInteractiveHidingEnabled  = false
        view.bringSubview(toFront: resultsViewController.view)
        resultsViewController.view.isHidden = true
