Skip to content

Commit

Permalink
Fix CollapsingTitleLayout multi-line fade.
Browse files Browse the repository at this point in the history
How did this even work before?!
  • Loading branch information
nickbutcher committed Jul 25, 2016
1 parent cc32764 commit e140956
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ private void setScrollOffsetMultiLine() {
lineAlpha = 1f;
} else if (scrollOffset > line.fullAlphaScrollOffset
&& scrollOffset < line.zeroAlphaScrollOffset) {
lineAlpha = 1f - (scrollOffset - line.zeroAlphaScrollOffset)
lineAlpha = 1f - (scrollOffset - line.fullAlphaScrollOffset)
/ (line.zeroAlphaScrollOffset - line.fullAlphaScrollOffset);
}
if (line.currentAlpha != lineAlpha) {
Expand Down

0 comments on commit e140956

Please sign in to comment.