No issue: Fix QAB handle lingering onscreen (#2244)
This commit is contained in:
parent
30ffc9fee2
commit
85eef5796a
|
@ -173,13 +173,15 @@ class QuickActionSheetBehavior(
|
||||||
private fun repositionQuickActionSheet(quickActionSheetContainer: NestedScrollView, toolbar: BrowserToolbar) {
|
private fun repositionQuickActionSheet(quickActionSheetContainer: NestedScrollView, toolbar: BrowserToolbar) {
|
||||||
val handleHeight = quickActionSheetContainer.findViewById<ImageButton>(R.id.quick_action_sheet_handle).height
|
val handleHeight = quickActionSheetContainer.findViewById<ImageButton>(R.id.quick_action_sheet_handle).height
|
||||||
if (toolbar.translationY >= toolbar.height.toFloat() - POSITION_SNAP_BUFFER) {
|
if (toolbar.translationY >= toolbar.height.toFloat() - POSITION_SNAP_BUFFER) {
|
||||||
|
quickActionSheetContainer.translationY = toolbar.translationY + toolbar.height * -1.0f + handleHeight
|
||||||
peekHeight = handleHeight
|
peekHeight = handleHeight
|
||||||
state = STATE_COLLAPSED
|
state = STATE_COLLAPSED
|
||||||
|
return
|
||||||
} else if (state == STATE_HIDDEN || state == STATE_SETTLING) {
|
} else if (state == STATE_HIDDEN || state == STATE_SETTLING) {
|
||||||
peekHeight = handleHeight
|
peekHeight = handleHeight
|
||||||
state = STATE_COLLAPSED
|
state = STATE_COLLAPSED
|
||||||
}
|
}
|
||||||
|
|
||||||
quickActionSheetContainer.translationY = (toolbar.translationY + toolbar.height * -1.0).toFloat()
|
quickActionSheetContainer.translationY = toolbar.translationY + toolbar.height * -1.0f
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user