瀏覽代碼

move selectionStyle .none to AvatarSelectionCell

cyberta 5 年之前
父節點
當前提交
b4609bb444

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

@@ -33,7 +33,6 @@ class EditGroupViewController: UITableViewController {
         self.chat = chat
         self.avatarSelectionCell = AvatarSelectionCell(chat: chat)
         super.init(style: .grouped)
-        self.avatarSelectionCell.selectionStyle = .none
         self.avatarSelectionCell.hintLabel.text = String.localized("group_avatar")
         title = String.localized("menu_edit_group")
     }

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

@@ -169,7 +169,6 @@ class EditSettingsController: UITableViewController, MediaPickerDelegate {
 
     private func createPictureAndNameCell() -> AvatarSelectionCell {
         let cell = AvatarSelectionCell(context: dcContext)
-        cell.selectionStyle = .none
         return cell
     }
 

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

@@ -22,7 +22,6 @@ class GroupNameController: UITableViewController {
 
     lazy var avatarSelectionCell: AvatarSelectionCell = {
         let cell = AvatarSelectionCell(context: nil)
-        cell.selectionStyle = .none
         cell.hintLabel.text = String.localized("group_avatar")
         return cell
     }()    

+ 1 - 0
deltachat-ios/View/AvatarSelectionCell.swift

@@ -65,6 +65,7 @@ class AvatarSelectionCell: UITableViewCell {
         let touchListener = UILongPressGestureRecognizer(target: self, action: #selector(onBadgeTouched))
         touchListener.minimumPressDuration = 0
         badge.addGestureRecognizer(touchListener)
+        selectionStyle = .none
     }
 
     func onInitialsChanged(text: String?) {