Skip to content

Commit

Permalink
Fix deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
hansemannn committed Nov 23, 2017
1 parent 6f531ee commit e06a7be
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions Source/ImagePickerController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ open class ImagePickerController: UIViewController {
}

statusBarHidden = UIApplication.shared.isStatusBarHidden
UIApplication.shared.setStatusBarHidden(true, with: .fade)

self.handleRotation(nil)
}
Expand All @@ -163,11 +162,6 @@ open class ImagePickerController: UIViewController {
applyOrientationTransforms()
}

open override func viewWillDisappear(_ animated: Bool) {
super.viewWillDisappear(animated)
UIApplication.shared.setStatusBarHidden(statusBarHidden, with: .fade)
}

open func resetAssets() {
self.stack.resetAssets([])
}
Expand Down Expand Up @@ -280,7 +274,7 @@ open class ImagePickerController: UIViewController {
// MARK: - Helpers

open override var prefersStatusBarHidden: Bool {
return true
return statusBarHidden
}

open func collapseGalleryView(_ completion: (() -> Void)?) {
Expand Down

0 comments on commit e06a7be

Please sign in to comment.