Android: Workaround for layout problems with immersive full screen mode

Workaround for layout problems in Android KitKat with immersive full
screen mode: Sometimes the content view was not initialized with the
correct size, which caused graphics artifacts.