소스 검색

rename buttons in EditSettingsController

cyberta 5 년 전
부모
커밋
044ccc89b7
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      deltachat-ios/Controller/EditSettingsController.swift

+ 4 - 4
deltachat-ios/Controller/EditSettingsController.swift

@@ -139,18 +139,18 @@ class EditSettingsController: UITableViewController, MediaPickerDelegate {
     }
 
 
-      private func photoButtonPressed(_ action: UIAlertAction) {
+      private func galleryButtonPressed(_ action: UIAlertAction) {
         coordinator?.showPhotoPicker(delegate: self)
       }
 
-      private func videoButtonPressed(_ action: UIAlertAction) {
+      private func cameraButtonPressed(_ action: UIAlertAction) {
         ///TODO implement me!
       }
 
     private func onAvatarTapped() {
         let alert = UIAlertController(title: nil, message: nil, preferredStyle: .actionSheet)
-                 let photoAction = PhotoPickerAlertAction(title: String.localized("gallery"), style: .default, handler: photoButtonPressed(_:))
-                 let videoAction = PhotoPickerAlertAction(title: String.localized("camera"), style: .default, handler: videoButtonPressed(_:))
+                 let photoAction = PhotoPickerAlertAction(title: String.localized("gallery"), style: .default, handler: galleryButtonPressed(_:))
+                 let videoAction = PhotoPickerAlertAction(title: String.localized("camera"), style: .default, handler: cameraButtonPressed(_:))
 
                  alert.addAction(photoAction)
                  alert.addAction(videoAction)