Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
Fix #6577: Hide Active NTP when backgrounding the app in private mode (
Browse files Browse the repository at this point in the history
  • Loading branch information
kylehickinson committed Aug 23, 2023
1 parent aa97c1c commit 68f8a13
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/Brave/Frontend/Browser/BrowserViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -722,6 +722,7 @@ public class BrowserViewController: UIViewController {
if let tab = tabManager.selectedTab, tab.isPrivate {
webViewContainerBackdrop.alpha = 1
webViewContainer.alpha = 0
activeNewTabPageViewController?.view.alpha = 0
header.contentView.alpha = 0
presentedViewController?.popoverPresentationController?.containerView?.alpha = 0
presentedViewController?.view.alpha = 0
Expand Down Expand Up @@ -751,6 +752,7 @@ public class BrowserViewController: UIViewController {
animations: {
self.webViewContainer.alpha = 1
self.header.contentView.alpha = 1
self.activeNewTabPageViewController?.view.alpha = 1
self.presentedViewController?.popoverPresentationController?.containerView?.alpha = 1
self.presentedViewController?.view.alpha = 1
self.view.backgroundColor = .clear
Expand Down

0 comments on commit 68f8a13

Please sign in to comment.