Skip to content

Commit 6c8e921

Browse files
authored
Ignore SystemChrome.setSystemUIOverlayStyle (#350)
* Ignore SystemChrome.setSystemUIOverlayStyle * Combine two methods
1 parent ed3d47e commit 6c8e921

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

shell/platform/tizen/channels/platform_channel.cc

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ constexpr char kSetEnabledSystemUiOverlaysMethod[] =
3535
"SystemChrome.setEnabledSystemUIOverlays";
3636
constexpr char kSetPreferredOrientationsMethod[] =
3737
"SystemChrome.setPreferredOrientations";
38+
constexpr char kSetSystemUIOverlayStyleMethod[] =
39+
"SystemChrome.setSystemUIOverlayStyle";
3840

3941
constexpr char kTextKey[] = "text";
4042
constexpr char kValueKey[] = "value";
@@ -127,9 +129,6 @@ void PlatformChannel::HandleMethodCall(
127129
} else if (method == kRestoreSystemUiOverlaysMethod) {
128130
RestoreSystemUiOverlays();
129131
result->Success();
130-
} else if (method == kSetApplicationSwitcherDescriptionMethod) {
131-
// Not supported on Tizen. Ignore.
132-
result->Success();
133132
} else if (method == kSetEnabledSystemUiOverlaysMethod) {
134133
const rapidjson::Document& list = arguments[0];
135134
std::vector<std::string> overlays;
@@ -146,6 +145,10 @@ void PlatformChannel::HandleMethodCall(
146145
}
147146
SetPreferredOrientations(orientations);
148147
result->Success();
148+
} else if (method == kSetApplicationSwitcherDescriptionMethod ||
149+
method == kSetSystemUIOverlayStyleMethod) {
150+
// Not supported on Tizen. Ignore.
151+
result->Success();
149152
} else {
150153
FT_LOG(Info) << "Unimplemented method: " << method;
151154
result->NotImplemented();

0 commit comments

Comments
 (0)