Skip to content

Commit 3cd0e41

Browse files
acb-mvbuggmagnet
authored andcommitted
Make prefersNotificationBarHidden default to true
1 parent 996d76a commit 3cd0e41

9 files changed

+5
-29
lines changed

ios/MullvadVPN/Containers/Root/RootContainerViewController.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ protocol RootContainment: Sendable {
5353

5454
extension RootContainment {
5555
var prefersNotificationBarHidden: Bool {
56-
false
56+
true
5757
}
5858

5959
var prefersDeviceInfoBarHidden: Bool {

ios/MullvadVPN/View controllers/CreationAccount/Completed/SetupAccountCompletedController.swift

-4
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@ class SetupAccountCompletedController: UIViewController, RootContainment {
3232
true
3333
}
3434

35-
var prefersNotificationBarHidden: Bool {
36-
true
37-
}
38-
3935
weak var delegate: SetupAccountCompletedControllerDelegate?
4036

4137
override func viewDidLoad() {

ios/MullvadVPN/View controllers/CreationAccount/Welcome/WelcomeViewController.swift

-4
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,6 @@ class WelcomeViewController: UIViewController, RootContainment {
3535
false
3636
}
3737

38-
var prefersNotificationBarHidden: Bool {
39-
true
40-
}
41-
4238
var prefersDeviceInfoBarHidden: Bool {
4339
true
4440
}

ios/MullvadVPN/View controllers/DeviceList/DeviceManagementViewController.swift

-4
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@ class DeviceManagementViewController: UIViewController, RootContainment {
2828
false
2929
}
3030

31-
var prefersNotificationBarHidden: Bool {
32-
true
33-
}
34-
3531
override var preferredStatusBarStyle: UIStatusBarStyle {
3632
.lightContent
3733
}

ios/MullvadVPN/View controllers/Login/LoginViewController.swift

-4
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,6 @@ class LoginViewController: UIViewController, RootContainment {
8787
contentView.accountInputGroup.satisfiesMinimumTokenLengthRequirement
8888
}
8989

90-
var prefersNotificationBarHidden: Bool {
91-
true
92-
}
93-
9490
var prefersDeviceInfoBarHidden: Bool {
9591
true
9692
}

ios/MullvadVPN/View controllers/OutOfTime/OutOfTimeViewController.swift

-4
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,6 @@ class OutOfTimeViewController: UIViewController, RootContainment {
4444
false
4545
}
4646

47-
var prefersNotificationBarHidden: Bool {
48-
true
49-
}
50-
5147
init(interactor: OutOfTimeInteractor, errorPresenter: PaymentAlertPresenter) {
5248
self.interactor = interactor
5349

ios/MullvadVPN/View controllers/RedeemVoucher/AddCreditSucceededViewController.swift

-4
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,6 @@ class AddCreditSucceededViewController: UIViewController, RootContainment {
6363
true
6464
}
6565

66-
var prefersNotificationBarHidden: Bool {
67-
true
68-
}
69-
7066
weak var delegate: AddCreditSucceededViewControllerDelegate? {
7167
didSet {
7268
dismissButton.setTitle(delegate?.titleForAction(in: self), for: .normal)

ios/MullvadVPN/View controllers/RedeemVoucher/RedeemVoucherViewController.swift

-4
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,6 @@ class RedeemVoucherViewController: UIViewController, UINavigationControllerDeleg
5656
true
5757
}
5858

59-
var prefersNotificationBarHidden: Bool {
60-
true
61-
}
62-
6359
// MARK: - Life Cycle
6460

6561
override func viewDidLoad() {

ios/MullvadVPN/View controllers/Tunnel/TunnelViewController.swift

+4
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ class TunnelViewController: UIViewController, RootContainment {
5757
false
5858
}
5959

60+
var prefersNotificationBarHidden: Bool {
61+
false
62+
}
63+
6064
init(interactor: TunnelViewControllerInteractor) {
6165
self.interactor = interactor
6266

0 commit comments

Comments
 (0)