Explorar o código

add visual feedback to media-quality-selection

B. Petersen %!s(int64=4) %!d(string=hai) anos
pai
achega
113f0f8b45
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      deltachat-ios/Controller/MediaQualityController.swift

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

@@ -10,7 +10,6 @@ class MediaQualityController: UITableViewController {
         return options.map({
             let cell = UITableViewCell(style: .default, reuseIdentifier: nil)
             cell.textLabel?.text = MediaQualityController.getValString(val: $0)
-            cell.selectionStyle = .none
             return cell
         })
     }()
@@ -53,6 +52,8 @@ class MediaQualityController: 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.getConfigInt("media_quality"), section: 0))
         oldSelectedCell?.accessoryType = .none