Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/src/main/java/me/onebone/toolbar/CollapsingToolbar.kt
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,10 @@ class CollapsingToolbarState(
var maxHeight: Int
get() = maxHeightState
internal set(value) {
val isExpanded = progress == 1F
maxHeightState = value

if(value < height) {
if(value < height || isExpanded) {
height = value
}
}
Expand Down