Skip to content

Commit

Permalink
Apply code style
Browse files Browse the repository at this point in the history
  • Loading branch information
fanyu committed Aug 16, 2022
1 parent 82f4c72 commit b69701a
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,28 +47,28 @@ final class SelectedPhotoInputItemsPreviewWindow: BottomSheetView {
}
}

override func dismissPopupControllerAnimated() {
override func dismissPopupController(animated: Bool) {
if !isSending {
delegate?.selectedPhotoInputItemsPreviewWindow(self, willDismissWindow: selectedAssets)
}
super.dismissPopupControllerAnimated()
super.dismissPopupController(animated: animated)
}

@IBAction func closeAction(_ sender: Any) {
isSending = false
dismissPopupControllerAnimated()
dismissPopupController(animated: true)
}

@IBAction func sendPhotosAction(_ sender: Any) {
isSending = true
delegate?.selectedPhotoInputItemsPreviewWindow(self, didTapSendItems: selectedAssets)
dismissPopupControllerAnimated()
dismissPopupController(animated: true)
}

@IBAction func sendAsFilesAction(_ sender: Any) {
isSending = true
delegate?.selectedPhotoInputItemsPreviewWindow(self, didTapSendFiles: selectedAssets)
dismissPopupControllerAnimated()
dismissPopupController(animated: true)
}

func load(assets: [PHAsset], initIndex: Int) {
Expand Down

0 comments on commit b69701a

Please sign in to comment.