Added clarifying comment.

This commit is contained in:
Peter Serwylo 2016-12-01 09:21:17 +11:00
parent a67ef806d2
commit 88661757f6

View File

@ -63,7 +63,10 @@ public class ScreenShotsRecyclerViewAdapter extends RecyclerView.Adapter<Recycle
@Override
public void onSnappedToView(View view, int snappedPosition) {
// Deselect the previous selected view first
setViewSelected(selectedView, false);
// Change the selected view to the newly snapped-to view.
selectedView = view;
selectedPosition = snappedPosition;
setViewSelected(selectedView, true);