Reduced indentation levels, broke long lines.

Also updated formatting, added docs for class variable $mNavigationBar, fixed
some hard coded parentheses and removed an unneeded else block.

Change-Id: Ic9a5f9f34199d89474cefbac763488cac1265094
Merge "Reduced indentation levels, broke long lines."