Преглед на файлове

add visual feedback to show-all-mails-selection

B. Petersen преди 4 години
родител
ревизия
9ba11beae7
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      deltachat-ios/Controller/SettingsClassicViewController.swift

+ 2 - 1
deltachat-ios/Controller/SettingsClassicViewController.swift

@@ -10,7 +10,6 @@ class SettingsClassicViewController: UITableViewController {
         return options.map({
             let cell = UITableViewCell(style: .default, reuseIdentifier: nil)
             cell.textLabel?.text = SettingsClassicViewController.getValString(val: $0)
-            cell.selectionStyle = .none
             return cell
         })
     }
@@ -55,6 +54,8 @@ class SettingsClassicViewController: UITableViewController {
     }
 
     override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
+        tableView.deselectRow(at: indexPath, animated: true) // animated as no other elements pop up
+
         let oldSelectedCell = tableView.cellForRow(at: IndexPath.init(row: dcContext.showEmails, section: 0))
         oldSelectedCell?.accessoryType = .none