Skip to content

Conversation

@seungsoo47
Copy link

In PlatformViewChannel::HandleMethodCall, a argument for 'dispose' method includes a map.
Hence, to get a proper view_id value, it should be parsed by 'id' key.

In PlatformViewChannel::HandleMethodCall, a argument for 'dispose' method includes a map.
Hence, to get a proper view_id value, it should be parsed by 'id' key.
Copy link

@bbrto21 bbrto21 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@bwikbs bwikbs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! 👍

@swift-kim
Copy link
Member

Shouldn't this be fixed in the plugin side?

https://github.com/flutter-tizen/plugins/blob/efe670a35d818a29731e079ac412ec0cd0a78ec6/packages/webview_flutter/lib/src/platform_view_tizen.dart#L261-L265

should be

await SystemChannels.platform_views.invokeMethod<void>('dispose', viewId);

@seungsoo47
Copy link
Author

auto it = view_instances_.find(view_id);
if (view_id >= 0 && it != view_instances_.end()) {
if (method == "dispose") {
it->second->Dispose();
result->Success();

It was initially handled using map value.

@swift-kim
Copy link
Member

It was initially handled using map value.

It doesn't matter.

Copy link
Member

@swift-kim swift-kim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Anyway the change looks good to me.

@bbrto21 bbrto21 merged commit 4f03173 into flutter-tizen:flutter-2.2.1-tizen Aug 25, 2021
swift-kim pushed a commit that referenced this pull request Sep 27, 2021
In PlatformViewChannel::HandleMethodCall, a argument for 'dispose' method includes a map.
Hence, to get a proper view_id value, it should be parsed by 'id' key.
swift-kim pushed a commit that referenced this pull request Nov 14, 2021
In PlatformViewChannel::HandleMethodCall, a argument for 'dispose' method includes a map.
Hence, to get a proper view_id value, it should be parsed by 'id' key.
swift-kim pushed a commit that referenced this pull request Dec 9, 2021
In PlatformViewChannel::HandleMethodCall, a argument for 'dispose' method includes a map.
Hence, to get a proper view_id value, it should be parsed by 'id' key.
swift-kim pushed a commit that referenced this pull request Dec 17, 2021
In PlatformViewChannel::HandleMethodCall, a argument for 'dispose' method includes a map.
Hence, to get a proper view_id value, it should be parsed by 'id' key.
swift-kim pushed a commit that referenced this pull request Feb 7, 2022
In PlatformViewChannel::HandleMethodCall, a argument for 'dispose' method includes a map.
Hence, to get a proper view_id value, it should be parsed by 'id' key.
swift-kim pushed a commit that referenced this pull request Feb 11, 2022
In PlatformViewChannel::HandleMethodCall, a argument for 'dispose' method includes a map.
Hence, to get a proper view_id value, it should be parsed by 'id' key.
swift-kim pushed a commit that referenced this pull request May 12, 2022
In PlatformViewChannel::HandleMethodCall, a argument for 'dispose' method includes a map.
Hence, to get a proper view_id value, it should be parsed by 'id' key.
swift-kim pushed a commit that referenced this pull request Aug 5, 2022
In PlatformViewChannel::HandleMethodCall, a argument for 'dispose' method includes a map.
Hence, to get a proper view_id value, it should be parsed by 'id' key.
swift-kim pushed a commit that referenced this pull request Sep 1, 2022
In PlatformViewChannel::HandleMethodCall, a argument for 'dispose' method includes a map.
Hence, to get a proper view_id value, it should be parsed by 'id' key.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants