No delay to close nav drawer after switching pages, feels much faster. Also fixed a small glitch.
This commit is contained in:
parent
f503d0ea1e
commit
ad627943fb
2 changed files with 4 additions and 13 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue