Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
liberty
tunnel
liberty-tunnel-client-library-apple
Commits
5043e1b6
Commit
5043e1b6
authored
Sep 24, 2018
by
ueshiba
Browse files
Force to present alert controller on the main thread
parent
f66a2cfc
Changes
1
Hide whitespace changes
Inline
Side-by-side
PIALibrary/Sources/UI/iOS/RedeemViewController.swift
View file @
5043e1b6
...
...
@@ -194,9 +194,11 @@ class RedeemViewController: AutolayoutViewController, WelcomeChild {
}
private
func
presentUnauthorizeCameraError
()
{
presentAlertWith
(
title
:
L10n
.
Welcome
.
Camera
.
Access
.
Error
.
title
,
andMessage
:
L10n
.
Welcome
.
Camera
.
Access
.
Denied
.
message
,
andButtonTitle
:
L10n
.
Ui
.
Global
.
close
)
DispatchQueue
.
main
.
async
{
self
.
presentAlertWith
(
title
:
L10n
.
Welcome
.
Camera
.
Access
.
Error
.
title
,
andMessage
:
L10n
.
Welcome
.
Camera
.
Access
.
Denied
.
message
,
andButtonTitle
:
L10n
.
Ui
.
Global
.
close
)
}
}
private
func
presentAlertWith
(
title
:
String
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment