Steps to reproduce:
1. run the above sample code on 3.x devices.
There should be two views in the window: one is white and one is green.
There is only one green view showing in the window. The white view will show up after an orientation change.