Fix flicker on show/hide toolbar/tabbar