Skip to content
This repository has been archived by the owner on Oct 2, 2021. It is now read-only.

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
avoid from delete user avatar in setting page
  • Loading branch information
saeedmozaffariGithub committed Mar 14, 2018
1 parent adea265 commit 0b312f1
Showing 1 changed file with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,12 +159,12 @@ class IGSettingTableViewController: UITableViewController , NVActivityIndicatorV
let trashImageView = UIImageView()
trashImageView.image = UIImage(named: "IG_Trash_avatar")
trashImageView.frame = CGRect(x: 0, y: 0, width: 25, height: 25)
deleteView = IGTappableView(frame: deleteViewFrame)
deleteView?.addSubview(trashImageView)
// deleteView = IGTappableView(frame: deleteViewFrame)
// deleteView?.addSubview(trashImageView)
let downloadViewFrame = self.view.bounds
deleteView?.addAction {
self.didTapOnTrashButton()
}
// deleteView?.addAction {
// self.didTapOnTrashButton()
// }
let downloadIndicatorMainView = UIView()
downloadIndicatorMainView.backgroundColor = UIColor.white
downloadIndicatorMainView.frame = downloadViewFrame
Expand Down Expand Up @@ -196,8 +196,10 @@ class IGSettingTableViewController: UITableViewController , NVActivityIndicatorV

if let attachment = currentAvatarFile {
IGDownloadManager.sharedManager.download(file: attachment, previewType: .originalFile, completion: { (attachment) -> Void in
galleryPreview.hiddenDownloadView()
self.stopAnimating()
DispatchQueue.main.async {
galleryPreview.hiddenDownloadView()
self.stopAnimating()
}
}, failure: {

})
Expand Down

0 comments on commit 0b312f1

Please sign in to comment.