|
|
|
@ -35,8 +35,10 @@ class BackstageWebView( |
|
|
|
|
|
|
|
|
|
suspend fun getStrResponse(): StrResponse = suspendCancellableCoroutine { block -> |
|
|
|
|
block.invokeOnCancellation { |
|
|
|
|
runOnUI { |
|
|
|
|
destroy() |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
callback = object : BackstageWebView.Callback() { |
|
|
|
|
override fun onResult(response: StrResponse) { |
|
|
|
|
if (!block.isCompleted) |
|
|
|
|