rust-mobile/android-activity

`ContentRectChanged` never getting triggered so `AndroidApp::content_rect` is always zero.

ArthurKValladares opened this issue · 2 comments

On a winit application. Not sure if I'm missing something to cause the event to get triggered.

rib commented

Hey @ArthurKValladares

By default many config changes simply result in an Android application being restarted instead of notifying you of the change.

It might be that you need to update your manifest to declare that you'd like to get notified about things like orientation and screen size changes without being restarted. See here: https://developer.android.com/guide/topics/resources/runtime-changes

Thank you!