- Refactored MainActivity.java