Просмотр исходного кода

hard code some additional informational text about account encryption in alert bottom sheet for now

cyberta 3 лет назад
Родитель
Сommit
4fbfbbf597
1 измененных файлов с 4 добавлено и 2 удалено
  1. 4 2
      deltachat-ios/Controller/WelcomeViewController.swift

+ 4 - 2
deltachat-ios/Controller/WelcomeViewController.swift

@@ -165,8 +165,10 @@ class WelcomeViewController: UIViewController, ProgressAlertHandler {
     }
 
     @objc private func moreButtonPressed() {
-        let alert = UIAlertController(title: nil, message: nil, preferredStyle: .safeActionSheet)
-        let encryptedAccountAction = UIAlertAction(title: String.localized("Create encrypted account"), style: .default, handler: switchToEncrypted(_:))
+        let alert = UIAlertController(title: "Encrypted Account (experimental)",
+                                      message: "Do you want to encrypt your account database? This cannot be undone.",
+                                      preferredStyle: .safeActionSheet)
+        let encryptedAccountAction = UIAlertAction(title: "Create encrypted account", style: .default, handler: switchToEncrypted(_:))
         let cancelAction = UIAlertAction(title: String.localized("cancel"), style: .destructive, handler: nil)
         alert.addAction(encryptedAccountAction)
         alert.addAction(cancelAction)