소스 검색

bugfix - footer in accountSetup remained visible under certain circumstances

Bastian van de Wetering 6 년 전
부모
커밋
e15589b881
2개의 변경된 파일1개의 추가작업 그리고 4개의 파일을 삭제
  1. 1 0
      deltachat-ios/Controller/AccountSetupController.swift
  2. 0 4
      deltachat-ios/Coordinator/AppCoordinator.swift

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

@@ -332,6 +332,7 @@ class AccountSetupController: UITableViewController {
 		} else {
 			tableView.deleteRows(at: advancedIndexPaths, with: .fade)
 		}
+		tableView.reloadData() // to re-organize footer view (without that sometimes advanced section footer is still visible)
 	}
 
 	@objc private func loginButtonPressed() {

+ 0 - 4
deltachat-ios/Coordinator/AppCoordinator.swift

@@ -422,10 +422,6 @@ class ChatViewCoordinator: Coordinator {
 						let pixelSize = compressedImage.imageSizeInPixel()
 						let width = Int32(exactly: pixelSize.width)!
 						let height =  Int32(exactly: pixelSize.height)!
-//						let width = Int32(exactly: compressedImage.size.width)!
-//						let height = Int32(exactly: compressedImage.size.height)!
-						print("CompressImage width: \(width)")
-						print("CompressImage height: \(height)")
 						let path = Utils.saveImage(image: compressedImage)
 						let msg = dc_msg_new(mailboxPointer, DC_MSG_IMAGE)
 						dc_msg_set_file(msg, path, "image/jpeg")