From 0618b31c5900750613997cbdd262bbf0a975f856 Mon Sep 17 00:00:00 2001 From: Hwee-Boon Yar Date: Thu, 29 Nov 2018 23:39:12 +0800 Subject: [PATCH] Show "Done" instead of "Detecting token type" as button title in add custom token screen when it's first shown --- .../Tokens/ViewControllers/NewTokenViewController.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/AlphaWallet/Tokens/ViewControllers/NewTokenViewController.swift b/AlphaWallet/Tokens/ViewControllers/NewTokenViewController.swift index e52c24c93..9c827a9a3 100644 --- a/AlphaWallet/Tokens/ViewControllers/NewTokenViewController.swift +++ b/AlphaWallet/Tokens/ViewControllers/NewTokenViewController.swift @@ -97,7 +97,8 @@ class NewTokenViewController: UIViewController, CanScanQRCode { scrollView.addSubview(stackView) saveButton.addTarget(self, action: #selector(addToken), for: .touchUpInside) - updateSaveButtonBasedOnTokenTypeDetected() + saveButton.isEnabled = true + saveButton.setTitle(R.string.localizable.done(), for: .normal) let buttonsStackView = [saveButton].asStackView(distribution: .fillEqually, contentHuggingPriority: .required) buttonsStackView.translatesAutoresizingMaskIntoConstraints = false