Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

[IP-398] Fixed history items deletion

  • Loading branch information
mahmoud-adam85 committed Apr 2, 2019
1 parent eba6882 commit 70c78ebfbb14cef573fb97666b582afd36e658a2
Showing with 2 additions and 2 deletions.
  1. +1 −1 Client/Frontend/Home/HistoryPanel.swift
  2. +1 −1 Cliqz/HomePanel/CliqzHistoryPanel.swift
@@ -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

0 comments on commit 70c78eb

Please sign in to comment.