Fix gravity handling in CoordinatorLayout
am: b3db610105

Change-Id: I8477489e5ffd889f9365f87f6ec46b42f8c09888