Clarifying comment

This commit is contained in:
Peter Serwylo 2016-12-01 09:39:04 +11:00
parent 4e664c3d92
commit 0b09d591ea

View File

@ -105,6 +105,8 @@ public class ShareChooserDialog extends BottomSheetDialogFragment {
int appWidth = Utils.dpToPx(80, getContext());
final int nCols = (mParentWidth - /* padding */ Utils.dpToPx(8, getContext())) / appWidth;
GridLayoutManager glm = new GridLayoutManager(getContext(), nCols);
// Ensure that if available, the "Nearby Swap" item spans the entire width.
glm.setSpanSizeLookup(new GridLayoutManager.SpanSizeLookup() {
@Override
public int getSpanSize(int position) {