Pārlūkot izejas kodu

avoid selection of non-selectable cells (info messages)

cyberta 3 gadi atpakaļ
vecāks
revīzija
9f38dc9dfb
1 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  1. 4 0
      deltachat-ios/Chat/ChatViewController.swift

+ 4 - 0
deltachat-ios/Chat/ChatViewController.swift

@@ -833,6 +833,10 @@ class ChatViewController: UITableViewController {
         }
     }
 
+    override func tableView(_ tableView: UITableView, shouldHighlightRowAt indexPath: IndexPath) -> Bool {
+        return tableView.cellForRow(at: indexPath) as? SelectableCell != nil
+    }
+
     override func tableView(_ tableView: UITableView, willSelectRowAt indexPath: IndexPath) -> IndexPath? {
         if let cell = tableView.cellForRow(at: indexPath) as? SelectableCell {
             cell.showSelectionBackground(tableView.isEditing)