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

package {{package}}

import android.content.Intent
import android.webkit.WebView
import android.webkit.WebResourceRequest
import android.webkit.WebResourceResponse
Expand All @@ -20,6 +21,7 @@ object Rust {
@JvmStatic external fun onActivitySaveInstanceState()
@JvmStatic external fun onActivityLowMemory()
@JvmStatic external fun onWindowFocusChanged(activity: WryActivity, focus: Boolean)
@JvmStatic external fun onNewIntent(intent: Intent)

@JvmStatic external fun create()
@JvmStatic external fun start()
Expand Down
4 changes: 4 additions & 0 deletions src/android/kotlin/WryActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,10 @@ abstract class WryActivity : AppCompatActivity() {
Rust.onActivityLowMemory()
}

override fun onNewIntent(intent: Intent) {
super.onNewIntent(intent)
Rust.onNewIntent(intent)
}
fun getAppClass(name: String): Class<*> {
return Class.forName(name)
}
Expand Down