Choose last span if layout is towards first item

This CL fixes a bug in GridLayoutManager where it was selecting
the wrong span index if the very first layout will happen towards
the first item in the adapter.

Bug: 26572382
Change-Id: I3e623fc127b10fb8101af32b010541c2e0ece276
4 files changed