Handling Android orientation in surface rotation tutorial #113
Labels
documentation
Improvements or additions to documentation
feature request
Request for a new feature or improvement
A code snippet in the surface rotation tutorial suggests using
APP_CMD_CONTENT_RECT_CHANGED
to handle orientation changes.However, this event is never generated by the current version of NDK without some extra work which is done in the framework (using
onContentRectChanged
).This is not mentioned in the tutorial, so the advice is a little bit misleading (see this issue).
Probably it is good to add a little Note section with an explanation.
This NDK issue is already reported and it's very likely that it will be fixed in the version 22, so it would be good to keep in mind (and probably update the code and the tutorial).
The text was updated successfully, but these errors were encountered: