Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Derp.
  • Loading branch information
chinmaygarde committed Mar 18, 2024
commit 41aa0ff8ae5afc1717d01aa422abd61af823368a
1 change: 1 addition & 0 deletions testing/android/native_activity/native_activity.cc
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ NativeActivity::NativeActivity(ANativeActivity* activity)
FML_CHECK(copied != nullptr)
<< "Allocation failure while saving instance state.";
memcpy(copied, mapping->GetMapping(), mapping->GetSize());
*out_size = mapping->GetSize();
return copied;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also set *out_size to mapping->GetSize()

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

};
activity->callbacks->onWindowFocusChanged = [](ANativeActivity* activity,
Expand Down