forked from organicmaps/organicmaps
[iOS] fix "successfull subscription" dialog
https://jira.mail.ru/browse/MAPSME-10942
This commit is contained in:
parent
acd5dcfb0b
commit
b2114aff05
2 changed files with 5 additions and 4 deletions
|
@ -207,10 +207,6 @@ extension BookmarksSubscriptionViewController: SubscriptionManagerListener {
|
|||
loadingView.isHidden = true
|
||||
if (isValid) {
|
||||
onSubscribe?()
|
||||
let successDialog = BookmarksSubscriptionSuccessViewController { [weak self] in
|
||||
self?.dismiss(animated: true)
|
||||
}
|
||||
present(successDialog, animated: true)
|
||||
} else {
|
||||
MWMAlertViewController.activeAlert().presentInfoAlert(L("bookmarks_convert_error_title"),
|
||||
text: L("purchase_error_subtitle"))
|
||||
|
|
|
@ -221,7 +221,12 @@ final class CatalogWebViewController: WebViewController {
|
|||
private func showSubscribe() {
|
||||
let subscribeViewController = BookmarksSubscriptionViewController()
|
||||
subscribeViewController.onSubscribe = { [weak self] in
|
||||
self?.webView.reload()
|
||||
self?.dismiss(animated: true)
|
||||
let successDialog = BookmarksSubscriptionSuccessViewController { [weak self] in
|
||||
self?.dismiss(animated: true)
|
||||
}
|
||||
self?.present(successDialog, animated: true)
|
||||
}
|
||||
subscribeViewController.onCancel = { [weak self] in
|
||||
self?.dismiss(animated: true)
|
||||
|
|
Loading…
Add table
Reference in a new issue