Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions payjp-android-verifier/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@
-->

<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<queries>
<intent>
<action android:name="android.support.customtabs.action.CustomTabsService" />
</intent>
</queries>

<application>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ class PayjpWebActivity : AppCompatActivity(), LifecycleObserver {
swipeRefresh = binding.swipeRefresh
)
)
addOnFinishedLoadState { _, url ->
addOnStartedLoadState { _, url ->
if (url.startsWith(callbackUri.toString())) {
logger.d("url matches with callbackUri $url")
redirectWithResult(Uri.parse(url))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ internal class VerifierWebView @JvmOverloads constructor(
loadStateWatchers.add(loadStateWatcher)
}

fun addOnFinishedLoadState(onFinished: (webView: WebView, url: String) -> Unit) {
addLoadStateWatcher(onFinished = onFinished)
fun addOnStartedLoadState(onStarted: (webView: WebView, url: String) -> Unit) {
addLoadStateWatcher(onStarted = onStarted)
}

fun addLoadStateWatcher(
Expand Down