flowkey / UIKit-cross-platform

Cross-platform Swift implementation of UIKit, mostly for Android
MIT License
597 stars 40 forks source link

dont skip in surfaceChanged #206

Closed michaelknoch closed 6 years ago

michaelknoch commented 6 years ago

Fixes https://github.com/flowkey/NativePlayerIOS/issues/484

Type of change: bugfix

Motivation

we expect surfaceChanged to be called two times, but this may not happen on all devices. If surfaceChanged is called once when in portrait mode, the app wont render. This seems to happen on fast android 8 devices :neutral_face:

Expected behavior

The app should render even when running on fast android 8 devices

Testing Details

tested with standalone testapp and when running from react-native

Please check if the PR fulfills these requirements