         super.viewDidLayoutSubviews()
         
         if !isBeingRotated {
-            mediaPickerView.frame = view.bounds
-            mediaPickerView.transform = CGAffineTransform(interfaceOrientation: interfaceOrientation)
+            layoutMediaPickerView(interfaceOrientation: interfaceOrientation)
         }
         onPreviewSizeDetermined?(mediaPickerView.previewSize)
         layoutSubviewsPromise.fulfill()

    
    override func viewWillAppear(_ animated: Bool) {
        super.viewWillAppear(animated)
        
        navigationController?.setNavigationBarHidden(true, animated: animated)
        UIApplication.shared.setStatusBarHidden(true, with: .fade)

        mediaPickerView.setShowsCropButton(showsCropButton)
    }
    
    // MARK: - Private
    
    func layoutMediaPickerView(interfaceOrientation: UIInterfaceOrientation) {
        mediaPickerView.frame = view.bounds
        mediaPickerView.transform = CGAffineTransform(interfaceOrientation: interfaceOrientation)
    }
    
    // MARK: - Dispose bag
    
    private var disposables = [AnyObject]()
