Fix for floatingheader snap value being higher than the max

translation if flinging quickly the all-apps recycler view.

Bug: 73151273
Change-Id: If7acbf7b48f69ea6a818a83d519049496b86ced3
This commit is contained in:
Mario Bertschler
2018-02-28 14:16:38 -08:00
parent 4250557a81
commit dd2424296a

View File

@@ -131,7 +131,7 @@ public class FloatingHeaderView extends LinearLayout implements
mSnappedScrolledY = currentScrollY - mMaxTranslation;
} else if (mTranslationY <= -mMaxTranslation) { // hide or stay hidden
mHeaderCollapsed = true;
mSnappedScrolledY = currentScrollY;
mSnappedScrolledY = -mMaxTranslation;
}
}
}