Commit 68c0e69f0ae3e7a803e8ed2f292cd0a6e165ccb6

Sylvain Becker 2019-01-09T22:41:52

Android: native_window validity is guaranteed between surfaceCreated and Destroyed It's currently still available after surfaceDestroyed(). And available (but invalid) between surfaceCreated() and surfaceChanged(). Which means ANativewindow_getWidth/Height/Format() fail in those cases. https://developer.android.com/reference/android/view/SurfaceHolder.html#getSurface()