@@ -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