Skip to content

Commit 33f49ed

Browse files
KM-13156 Remove call causing distorted elements in iPads when rotating
1 parent d4a2427 commit 33f49ed

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

PIA VPN/UI/Dashboard/DashboardViewController.swift

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,9 @@ class DashboardViewController: AutolayoutViewController {
136136
nc.addObserver(self, selector: #selector(applicationDidBecomeActive(notification:)), name: UIApplication.didBecomeActiveNotification, object: nil)
137137
nc.addObserver(self, selector: #selector(vpnStatusDidChange(notification:)), name: .PIADaemonsDidUpdateVPNStatus, object: nil)
138138

139-
if UserInterface.isIpad {
140-
nc.addObserver(self, selector: #selector(viewHasRotated), name: UIDevice.orientationDidChangeNotification, object: nil)
141-
}
139+
// if UserInterface.isIpad {
140+
// nc.addObserver(self, selector: #selector(viewHasRotated), name: UIDevice.orientationDidChangeNotification, object: nil)
141+
// }
142142

143143
nc.addObserver(self, selector: #selector(updateCurrentStatus), name: .PIAThemeDidChange, object: nil)
144144
nc.addObserver(self, selector: #selector(updateTiles), name: .PIATilesDidChange, object: nil)
@@ -574,16 +574,16 @@ class DashboardViewController: AutolayoutViewController {
574574
}
575575
}
576576

577-
@objc private func viewHasRotated() {
578-
if Client.providers.accountProvider.isLoggedIn {
579-
if tileModeStatus == .edit,
580-
let tileLayout = collectionView.collectionViewLayout as? TileFlowLayout {
581-
tileLayout.removeDraggingViewFromSuperView()
582-
}
583-
updateCurrentStatus()
584-
updateTileLayout()
585-
}
586-
}
577+
// @objc private func viewHasRotated() {
578+
// if Client.providers.accountProvider.isLoggedIn {
579+
// if tileModeStatus == .edit,
580+
// let tileLayout = collectionView.collectionViewLayout as? TileFlowLayout {
581+
// tileLayout.removeDraggingViewFromSuperView()
582+
// }
583+
// updateCurrentStatus()
584+
// updateTileLayout()
585+
// }
586+
// }
587587

588588
@objc private func accountDidLogout(notification: Notification) {
589589
AppPreferences.shared.todayWidgetVpnStatus = nil

0 commit comments

Comments
 (0)