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 and pull[bot] committed Dec 19, 2023
1 parent 58de031 commit 4181619
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 4181619

Please sign in to comment.