From 5dfe24e8fe47f82bf231c9a16d10038ad58d7874 Mon Sep 17 00:00:00 2001 From: Swift Kim Date: Fri, 16 Sep 2022 11:02:44 +0900 Subject: [PATCH 1/2] Ignore SystemChrome.setSystemUIOverlayStyle --- shell/platform/tizen/channels/platform_channel.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/shell/platform/tizen/channels/platform_channel.cc b/shell/platform/tizen/channels/platform_channel.cc index f136c47ad7a1e..6b2f79775bd64 100644 --- a/shell/platform/tizen/channels/platform_channel.cc +++ b/shell/platform/tizen/channels/platform_channel.cc @@ -35,6 +35,8 @@ constexpr char kSetEnabledSystemUiOverlaysMethod[] = "SystemChrome.setEnabledSystemUIOverlays"; constexpr char kSetPreferredOrientationsMethod[] = "SystemChrome.setPreferredOrientations"; +constexpr char kSetSystemUIOverlayStyleMethod[] = + "SystemChrome.setSystemUIOverlayStyle"; constexpr char kTextKey[] = "text"; constexpr char kValueKey[] = "value"; @@ -146,6 +148,9 @@ void PlatformChannel::HandleMethodCall( } SetPreferredOrientations(orientations); result->Success(); + } else if (method == kSetSystemUIOverlayStyleMethod) { + // Not supported on Tizen. Ignore. + result->Success(); } else { FT_LOG(Info) << "Unimplemented method: " << method; result->NotImplemented(); From 9e87c460dfeb6bb206e034afb3a3ca03f2c94843 Mon Sep 17 00:00:00 2001 From: Swift Kim Date: Fri, 16 Sep 2022 14:12:19 +0900 Subject: [PATCH 2/2] Combine two methods --- shell/platform/tizen/channels/platform_channel.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/shell/platform/tizen/channels/platform_channel.cc b/shell/platform/tizen/channels/platform_channel.cc index 6b2f79775bd64..9deb3a4ea255a 100644 --- a/shell/platform/tizen/channels/platform_channel.cc +++ b/shell/platform/tizen/channels/platform_channel.cc @@ -129,9 +129,6 @@ void PlatformChannel::HandleMethodCall( } else if (method == kRestoreSystemUiOverlaysMethod) { RestoreSystemUiOverlays(); result->Success(); - } else if (method == kSetApplicationSwitcherDescriptionMethod) { - // Not supported on Tizen. Ignore. - result->Success(); } else if (method == kSetEnabledSystemUiOverlaysMethod) { const rapidjson::Document& list = arguments[0]; std::vector overlays; @@ -148,7 +145,8 @@ void PlatformChannel::HandleMethodCall( } SetPreferredOrientations(orientations); result->Success(); - } else if (method == kSetSystemUIOverlayStyleMethod) { + } else if (method == kSetApplicationSwitcherDescriptionMethod || + method == kSetSystemUIOverlayStyleMethod) { // Not supported on Tizen. Ignore. result->Success(); } else {