Update MainActivity.java

change in rotate