Moved initialization code after declaration of the StatusBar instance.
Added support for StatusBar.isVisible on Android