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

Commit

Permalink
For #9614: Integrate new onTouchEventForDetailResult.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcarare authored and mergify[bot] committed Mar 10, 2021
1 parent 9483b4a commit 7e3b610
Showing 1 changed file with 2 additions and 4 deletions.
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

0 comments on commit 7e3b610

Please sign in to comment.