From c3c8ed47e44744e4d44f051a53a0509dcfcda1db Mon Sep 17 00:00:00 2001 From: Swift Kim Date: Mon, 4 Jul 2022 15:34:47 +0900 Subject: [PATCH 1/2] Ignore SystemChrome.setApplicationSwitcherDescription --- shell/platform/tizen/channels/platform_channel.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/shell/platform/tizen/channels/platform_channel.cc b/shell/platform/tizen/channels/platform_channel.cc index 263108f214a3f..e8b9cd54b74d2 100644 --- a/shell/platform/tizen/channels/platform_channel.cc +++ b/shell/platform/tizen/channels/platform_channel.cc @@ -29,6 +29,8 @@ constexpr char kHapticFeedbackVibrateMethod[] = "HapticFeedback.vibrate"; constexpr char kSystemNavigatorPopMethod[] = "SystemNavigator.pop"; constexpr char kRestoreSystemUiOverlaysMethod[] = "SystemChrome.restoreSystemUIOverlays"; +constexpr char kSetApplicationSwitcherDescriptionMethod[] = + "SystemChrome.setApplicationSwitcherDescription"; constexpr char kSetEnabledSystemUiOverlaysMethod[] = "SystemChrome.setEnabledSystemUIOverlays"; constexpr char kSetPreferredOrientationsMethod[] = @@ -125,6 +127,8 @@ void PlatformChannel::HandleMethodCall( } else if (method == kRestoreSystemUiOverlaysMethod) { RestoreSystemUiOverlays(); result->Success(); + } else if (method == kSetApplicationSwitcherDescriptionMethod) { + result->Success(); } else if (method == kSetEnabledSystemUiOverlaysMethod) { const rapidjson::Document& list = arguments[0]; std::vector overlays; From b37d259a8639725ff03afa7398e4907bddd73465 Mon Sep 17 00:00:00 2001 From: Swift Kim Date: Tue, 5 Jul 2022 11:56:29 +0900 Subject: [PATCH 2/2] Add a comment --- shell/platform/tizen/channels/platform_channel.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/shell/platform/tizen/channels/platform_channel.cc b/shell/platform/tizen/channels/platform_channel.cc index e8b9cd54b74d2..f136c47ad7a1e 100644 --- a/shell/platform/tizen/channels/platform_channel.cc +++ b/shell/platform/tizen/channels/platform_channel.cc @@ -128,6 +128,7 @@ void PlatformChannel::HandleMethodCall( RestoreSystemUiOverlays(); result->Success(); } else if (method == kSetApplicationSwitcherDescriptionMethod) { + // Not supported on Tizen. Ignore. result->Success(); } else if (method == kSetEnabledSystemUiOverlaysMethod) { const rapidjson::Document& list = arguments[0];