Skip to content

Commit

Permalink
Correct code!
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafael de Araujo committed Jan 13, 2017
1 parent c2d000b commit 7d10773
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
import android.view.ViewGroup;

import com.orafaaraujo.rxrecyclerexample.R;
import com.orafaaraujo.rxrecyclerexample.presentation.main.presentation.adapter.viewholder.LineHolder;
import com.orafaaraujo.rxrecyclerexample.presentation.main.model.UserModel;
import com.orafaaraujo.rxrecyclerexample.presentation.main.presentation.adapter.viewholder.LineHolder;

import java.util.ArrayList;
import java.util.List;
Expand Down Expand Up @@ -49,6 +49,7 @@ public int getItemCount() {

/**
* Método publico chamado para atualziar a lista.
*
* @param user Novo objeto que será incluido na lista.
*/
public void updateList(UserModel user) {
Expand All @@ -72,7 +73,7 @@ private void updateItem(int position) {
private void removerItem(int position) {
mUsers.remove(position);
notifyItemRemoved(position);
// notifyItemRangeChanged(position, mUsers.size());
notifyItemRangeChanged(position, mUsers.size());
}
}

Expand Down

0 comments on commit 7d10773

Please sign in to comment.