Some workarounds for redrawing before device rotation