Skip to content

Commit

Permalink
Bugfix FXIOS-9933 #21791 Password screen no longer blurs (blank inste…
Browse files Browse the repository at this point in the history
…ad) when app is backgrounded (#21884)

* FXIOS-9933 #21791 Password screen no longer blurs (blank instead) when app is backgrounded

* Remove privacy screen granularly

* Remove check
  • Loading branch information
razvanlitianu authored Sep 11, 2024
1 parent e8cd6f3 commit 23672c8
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,8 @@ class BrowserViewController: UIViewController,
// If we are displaying a private tab, hide any elements in the tab that we wouldn't want shown
// when the app is in the home switcher
guard let privateTab = tabManager.selectedTab,
privateTab.isPrivate
privateTab.isPrivate,
canShowPrivacyView
else { return }

view.bringSubviewToFront(webViewContainerBackdrop)
Expand All @@ -508,6 +509,12 @@ class BrowserViewController: UIViewController,
presentedViewController?.view.alpha = 0
}

var canShowPrivacyView: Bool {
// Show privacy view if no view controller is presented
// or if the presented view is a PhotonActionSheet.
self.presentedViewController == nil || presentedViewController is PhotonActionSheet
}

@objc
func appDidBecomeActiveNotification() {
// Re-show any components that might have been hidden because they were being displayed
Expand All @@ -518,13 +525,11 @@ class BrowserViewController: UIViewController,
options: UIView.AnimationOptions(),
animations: {
self.contentStackView.alpha = 1

if self.isToolbarRefactorEnabled {
self.addressToolbarContainer.alpha = 1
} else {
self.urlBar.locationContainer.alpha = 1
}

self.presentedViewController?.popoverPresentationController?.containerView?.alpha = 1
self.presentedViewController?.view.alpha = 1
}, completion: { _ in
Expand Down

0 comments on commit 23672c8

Please sign in to comment.