Skip to content
Draft
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
7 changes: 7 additions & 0 deletions src/android/kotlin/WryActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ package {{package}}

import {{package}}.RustWebView
import android.annotation.SuppressLint
import android.content.Intent
import android.os.Build
import android.os.Bundle
import android.webkit.WebView
Expand Down Expand Up @@ -60,6 +61,11 @@ abstract class WryActivity : AppCompatActivity() {
create(this)
}

override fun onNewIntent(intent: Intent) {
super.onNewIntent(intent)
newIntent(intent)
}

override fun onStart() {
super.onStart()
start()
Expand Down Expand Up @@ -120,6 +126,7 @@ abstract class WryActivity : AppCompatActivity() {
}

private external fun create(activity: WryActivity)
private external fun newIntent(intent: Intent)
private external fun start()
private external fun resume()
private external fun pause()
Expand Down