Fixes the issue with the status bar and navigation bar being displayed differently depending on device or rotation