Skip to content

Commit

Permalink
[HotFix/Android] data is an optional now. (#24618)
Browse files Browse the repository at this point in the history
  • Loading branch information
vivien-apple authored Jan 24, 2023
1 parent 7eda58b commit 57cd02e
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ void ApplicationLauncherManager::HandleLaunchApp(CommandResponseHelper<LauncherR
// TODO: Insert code here
LauncherResponseType response;
const char * buf = "data";
response.data = ByteSpan(from_const_char(buf), strlen(buf));
response.status = ApplicationLauncherStatusEnum::kSuccess;
response.data.SetValue(ByteSpan(from_const_char(buf), strlen(buf)));
response.status = ApplicationLauncherStatusEnum::kSuccess;
helper.Success(response);
}

Expand All @@ -57,8 +57,8 @@ void ApplicationLauncherManager::HandleStopApp(CommandResponseHelper<LauncherRes
// TODO: Insert code here
LauncherResponseType response;
const char * buf = "data";
response.data = ByteSpan(from_const_char(buf), strlen(buf));
response.status = ApplicationLauncherStatusEnum::kSuccess;
response.data.SetValue(ByteSpan(from_const_char(buf), strlen(buf)));
response.status = ApplicationLauncherStatusEnum::kSuccess;
helper.Success(response);
}

Expand All @@ -70,7 +70,7 @@ void ApplicationLauncherManager::HandleHideApp(CommandResponseHelper<LauncherRes
// TODO: Insert code here
LauncherResponseType response;
const char * buf = "data";
response.data = ByteSpan(from_const_char(buf), strlen(buf));
response.status = ApplicationLauncherStatusEnum::kSuccess;
response.data.SetValue(ByteSpan(from_const_char(buf), strlen(buf)));
response.status = ApplicationLauncherStatusEnum::kSuccess;
helper.Success(response);
}

0 comments on commit 57cd02e

Please sign in to comment.