Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onNewIntent可能丢失数据 #1325

Open
shifujun opened this issue May 22, 2024 · 0 comments
Open

onNewIntent可能丢失数据 #1325

shifujun opened this issue May 22, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@shifujun
Copy link
Collaborator

@shifujun ShadowActivityDelegate 这里带有 nfc 扫描结果的 Intent 数据会被覆盖掉,应该是一个 bug 。
image

这样改不知道会不会有问题啊

   val pluginExtras: Bundle? = intent.getBundleExtra(CM_EXTRAS_BUNDLE_KEY)
   if (pluginExtras != null) {
        intent.putExtra(CM_EXTRAS_BUNDLE_KEY, pluginExtras)
    }
   mPluginActivity.onNewIntent(intent)

最初由 qingsongwill 在 #1298 (comment) 发布

@shifujun shifujun added the bug Something isn't working label May 22, 2024
@shifujun shifujun changed the title onNewIntent @shifujun [ShadowActivityDelegate](https://github.com/Tencent/Shadow/blob/4880701cbf7ea652d4e20abc7b81c16df63057af/projects/sdk/core/loader/src/main/kotlin/com/tencent/shadow/core/loader/delegates/ShadowActivityDelegate.kt#L201) 这里带有 nfc 扫描结果的 Intent 数据会被覆盖掉,应该是一个 bug 。 onNewIntent可能丢失数据 May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant