Skip to content

Commit

Permalink
Merge pull request #4519 from wikimedia/undo-granular-updating
Browse files Browse the repository at this point in the history
Undo granular updating change
  • Loading branch information
mazevedofs authored May 1, 2023
2 parents f03cdbd + 7803d78 commit 7517b71
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions Wikipedia/Code/ExploreViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ class ExploreViewController: ColumnarCollectionViewController, ExploreCardViewCo
NotificationCenter.default.addObserver(self, selector: #selector(articleDeleted(_:)), name: NSNotification.Name.WMFArticleDeleted, object: nil)
NotificationCenter.default.addObserver(self, selector: #selector(pushNotificationBannerDidDisplayInForeground(_:)), name: .pushNotificationBannerDidDisplayInForeground, object: nil)
NotificationCenter.default.addObserver(self, selector: #selector(viewContextDidReset(_:)), name: NSNotification.Name.WMFViewContextDidReset, object: nil)
NotificationCenter.default.addObserver(self, selector: #selector(applicationWillResignActive(_:)), name: UIApplication.willResignActiveNotification, object: nil)
NotificationCenter.default.addObserver(self, selector: #selector(applicationWillEnterForeground(_:)), name: UIApplication.willEnterForegroundNotification, object: nil)

#if UI_TEST
if UserDefaults.standard.wmf_isFastlaneSnapshotInProgress() {
Expand Down Expand Up @@ -1022,14 +1020,6 @@ extension ExploreViewController: ExploreCardCollectionViewCellDelegate {
@objc func viewContextDidReset(_ note: Notification) {
collectionView.reloadData()
}

@objc func applicationWillEnterForeground(_ note: Notification) {
isGranularUpdatingEnabled = true
}

@objc func applicationWillResignActive(_ note: Notification) {
isGranularUpdatingEnabled = false
}

private func menuActionSheetForGroup(_ group: WMFContentGroup) -> UIAlertController? {
guard group.contentGroupKind.isCustomizable || group.contentGroupKind.isGlobal else {
Expand Down

0 comments on commit 7517b71

Please sign in to comment.