From d4a669ba1e893be547635d1ce5fbd745bedc8a20 Mon Sep 17 00:00:00 2001 From: Stuart Breckenridge Date: Fri, 11 Feb 2022 06:30:04 +0800 Subject: [PATCH] Disables prefetching --- iOS/Settings/NotificationsTableViewCell.swift | 2 -- iOS/Settings/NotificationsViewController.swift | 5 +---- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/iOS/Settings/NotificationsTableViewCell.swift b/iOS/Settings/NotificationsTableViewCell.swift index be5abfab2..3e3683ccf 100644 --- a/iOS/Settings/NotificationsTableViewCell.swift +++ b/iOS/Settings/NotificationsTableViewCell.swift @@ -31,7 +31,6 @@ class NotificationsTableViewCell: VibrantBasicTableViewCell { } func configure(_ webFeed: WebFeed) { - print("NotificationTableView: configuring cell: \(webFeed.nameForDisplay)") self.feed = webFeed var isOn = false if webFeed.isNotifyAboutNewArticles == nil { @@ -44,7 +43,6 @@ class NotificationsTableViewCell: VibrantBasicTableViewCell { notificationsLabel.text = webFeed.nameForDisplay notificationsImageView.image = IconImageCache.shared.imageFor(webFeed.feedID!)?.image notificationsImageView.layer.cornerRadius = 4 - print("NotificationTableView: configured cell: \(webFeed.nameForDisplay)") } @objc diff --git a/iOS/Settings/NotificationsViewController.swift b/iOS/Settings/NotificationsViewController.swift index 5392b9ef9..103f27ed2 100644 --- a/iOS/Settings/NotificationsViewController.swift +++ b/iOS/Settings/NotificationsViewController.swift @@ -47,6 +47,7 @@ class NotificationsViewController: UIViewController { menu: notificationFilterMenu()) navigationItem.rightBarButtonItem = filterButton + notificationsTableView.isPrefetchingEnabled = false reloadNotificationTableView() @@ -71,17 +72,13 @@ class NotificationsViewController: UIViewController { @objc private func updateCellsFrom(_ notification: Notification) { guard let webFeed = notification.userInfo?[UserInfoKey.webFeed] as? WebFeed else { return } - print("NotificationTableView: Received WebFeedIcon for \(webFeed.nameForDisplay)") let cell = notificationsTableView.visibleCells.filter({ ($0 as? NotificationsTableViewCell)?.feed == webFeed }).first as? NotificationsTableViewCell if cell != nil { if let indexPath = notificationsTableView.indexPath(for: cell!) { notificationsTableView.reconfigureRows(at: [indexPath]) - print("NotificationTableView: Reconfigured cell for \(webFeed.nameForDisplay)") return } - } else { - print("NotificationTableView: Cannot find cell for \(webFeed.nameForDisplay)") } }