Fixing styling issues.

Replace else ifs with switch in android .java.