No delay to close nav drawer after switching pages, feels much faster. Also fixed a small glitch.

This commit is contained in:
Aidan Follestad 2015-04-18 02:25:41 -05:00
commit ad627943fb
2 changed files with 4 additions and 13 deletions

View file

@ -73,11 +73,9 @@ public class NavigationDrawerItemAdapter extends RecyclerView.Adapter<Navigation
}
public void setChecked(int position) {
int oldPosition = currentChecked;
// int oldPosition = currentChecked;
currentChecked = position;
if (oldPosition != -1)
notifyItemChanged(oldPosition);
notifyItemChanged(position);
notifyDataSetChanged();
}
@Override