Update MainActivity.java

From github.