Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[IP-398] Fixed history items deletion
- Loading branch information
|
|
@@ -264,7 +264,7 @@ class HistoryPanel: SiteTableViewController, HomePanel { |
|
|
return nil |
|
|
} |
|
|
|
|
|
let sitesInSection = groupedSites.itemsForSection(indexPath.section - 1) |
|
|
let sitesInSection = groupedSites.itemsForSection(indexPath.section) |
|
|
return sitesInSection[safe: indexPath.row] |
|
|
} |
|
|
|
|
|
|
|
|
@@ -106,7 +106,7 @@ class CliqzHistoryPanel: HistoryPanel { |
|
|
} |
|
|
|
|
|
override func configureSite(_ cell: UITableViewCell, for indexPath: IndexPath) -> UITableViewCell { |
|
|
if let site = siteForIndexPath(IndexPath(row: indexPath.row, section: indexPath.section + 1)), let cell = cell as? CliqzSiteTableViewCell { |
|
|
if let site = siteForIndexPath(indexPath), let cell = cell as? CliqzSiteTableViewCell { |
|
|
cell.setLines(site.title, detailText: site.url) |
|
|
cell.tag = indexPath.row |
|
|
cell.imageShadowView.alpha = 0.0 |
|
|
|