Update MainActivity.java

Addressing pull request comments