Skip to content

Commit 6426d1a

Browse files
Refactor: rename presentOverlay to presentOverlayIfNeeded
1 parent e313982 commit 6426d1a

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

WordPress/Classes/ViewRelated/Jetpack/Branding/Coordinator/JetpackFeaturesRemovalCoordinator.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class JetpackFeaturesRemovalCoordinator {
8888
/// - Parameters:
8989
/// - source: The source that triggers the display of the overlay.
9090
/// - viewController: View controller where the overlay should be presented in.
91-
static func presentOverlay(from source: OverlaySource, in viewController: UIViewController) {
91+
static func presentOverlayIfNeeded(from source: OverlaySource, in viewController: UIViewController) {
9292
let phase = generalPhase()
9393
let frequencyConfig = phase.frequencyConfig
9494
let config = JetpackFullscreenOverlayGeneralConfig(phase: phase, source: source)

WordPress/Classes/ViewRelated/Notifications/Controllers/NotificationsViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ class NotificationsViewController: UIViewController, UIViewControllerRestoration
180180
override func viewWillAppear(_ animated: Bool) {
181181
super.viewWillAppear(animated)
182182

183-
JetpackFeaturesRemovalCoordinator.presentOverlay(from: .notifications, in: self)
183+
JetpackFeaturesRemovalCoordinator.presentOverlayIfNeeded(from: .notifications, in: self)
184184

185185
syncNotificationsWithModeratedComments()
186186
setupInlinePrompt()

WordPress/Classes/ViewRelated/Reader/ReaderStreamViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ import Combine
347347
override func viewWillAppear(_ animated: Bool) {
348348
super.viewWillAppear(animated)
349349

350-
JetpackFeaturesRemovalCoordinator.presentOverlay(from: .reader, in: self)
350+
JetpackFeaturesRemovalCoordinator.presentOverlayIfNeeded(from: .reader, in: self)
351351

352352
syncIfAppropriate()
353353
}

WordPress/Classes/ViewRelated/Stats/SiteStatsDashboardViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ class SiteStatsDashboardViewController: UIViewController {
9696

9797
override func viewWillAppear(_ animated: Bool) {
9898
super.viewWillAppear(animated)
99-
JetpackFeaturesRemovalCoordinator.presentOverlay(from: .stats, in: self)
99+
JetpackFeaturesRemovalCoordinator.presentOverlayIfNeeded(from: .stats, in: self)
100100
}
101101

102102
func configureInsightsTableView() {

0 commit comments

Comments
 (0)