Update MainActivity.java

Fixing bug that occurs when the list is duplicated after refreshing