Fixed call redirect URI
This commit is contained in:
@@ -2338,7 +2338,7 @@ fun handleServiceEvent(ctx: Context, viewModel: ViewModel, event: String, params
|
|||||||
val redirectUri = ev[1]
|
val redirectUri = ev[1]
|
||||||
val target = Utils.friendlyUri(ctx, redirectUri, acc)
|
val target = Utils.friendlyUri(ctx, redirectUri, acc)
|
||||||
if (acc.autoRedirect) {
|
if (acc.autoRedirect) {
|
||||||
redirect(ctx, viewModel, ua, target)
|
redirect(ctx, viewModel, ua, redirectUri)
|
||||||
Toast.makeText(ctx,
|
Toast.makeText(ctx,
|
||||||
String.format(ctx.getString(R.string.redirect_notice), target),
|
String.format(ctx.getString(R.string.redirect_notice), target),
|
||||||
Toast.LENGTH_SHORT
|
Toast.LENGTH_SHORT
|
||||||
@@ -2352,7 +2352,7 @@ fun handleServiceEvent(ctx: Context, viewModel: ViewModel, event: String, params
|
|||||||
onSecondClicked.value = { }
|
onSecondClicked.value = { }
|
||||||
lastText.value = ctx.getString(R.string.yes)
|
lastText.value = ctx.getString(R.string.yes)
|
||||||
onLastClicked.value = {
|
onLastClicked.value = {
|
||||||
redirect(ctx, viewModel, ua, target)
|
redirect(ctx, viewModel, ua, redirectUri)
|
||||||
}
|
}
|
||||||
showDialog.value = true
|
showDialog.value = true
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user