فهرست منبع

remove unwanted vibration feedback (#1627)

bjoern 3 سال پیش
والد
کامیت
46803acfa7
2فایلهای تغییر یافته به همراه1 افزوده شده و 2 حذف شده
  1. 1 0
      deltachat-ios/Controller/ChatListController.swift
  2. 0 2
      deltachat-ios/View/ContactCell.swift

+ 1 - 0
deltachat-ios/Controller/ChatListController.swift

@@ -770,6 +770,7 @@ extension ChatListController: ContactCellDelegate {
            !searchActive,
            !RelayHelper.shared.isForwarding(),
            !tableView.isEditing {
+            UIImpactFeedbackGenerator(style: .medium).impactOccurred()
             setLongTapEditing(true, initialIndexPath: [indexPath])
             tableView.selectRow(at: indexPath, animated: true, scrollPosition: .none)
         }

+ 0 - 2
deltachat-ios/View/ContactCell.swift

@@ -219,8 +219,6 @@ class ContactCell: UITableViewCell {
         if sender.state == UIGestureRecognizer.State.began,
            let tableView = self.superview as? UITableView,
            let indexPath = tableView.indexPath(for: self) {
-            let generator = UIImpactFeedbackGenerator(style: .medium)
-            generator.impactOccurred()
             delegate?.onLongTap(at: indexPath)
         }
     }