Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

For #9614: Integrate new onTouchEventForDetailResult. #9855

Merged
merged 1 commit into from
Mar 10, 2021
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,11 @@ open class NestedGeckoView(context: Context) : GeckoView(context), NestedScrolli

@VisibleForTesting
internal fun updateInputResult(event: MotionEvent) {
@Suppress("Deprecation")
// Deprecation to be replaced in https://github.com/mozilla-mobile/android-components/issues/9614
super.onTouchEventForResult(event)
super.onTouchEventForDetailResult(event)
.accept {
// This should never be null.
// Prefer to crash and investigate after rather than not knowing about problems with this.
inputResult = it!!
inputResult = it?.handledResult()!!
startNestedScroll(ViewCompat.SCROLL_AXIS_VERTICAL)
}
}
Expand Down