-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RUM-721 treat scroll on non scrollable view as tap #1622
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #1622 +/- ##
===========================================
- Coverage 83.57% 83.52% -0.05%
===========================================
Files 452 452
Lines 15652 15661 +9
Branches 2324 2326 +2
===========================================
- Hits 13081 13080 -1
- Misses 1950 1955 +5
- Partials 621 626 +5
|
3dd49a3
to
1a96e81
Compare
1a96e81
to
ed67bed
Compare
@@ -336,6 +337,17 @@ tasks.register("printSdkDebugRuntimeClasspath") { | |||
result += File(androidJarFilePath.joinToString(File.separator)) | |||
} | |||
|
|||
val envSdkHome = System.getenv("ANDROID_SDK_ROOT") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This ensures that in CI (where no local.properties
file exists) we still include the android.jar
for type resolution.
@@ -280,7 +300,8 @@ internal class GesturesListener( | |||
|
|||
private fun isScrollableView(view: View): Boolean { | |||
return ScrollingView::class.java.isAssignableFrom(view.javaClass) || | |||
AbsListView::class.java.isAssignableFrom(view.javaClass) | |||
AbsListView::class.java.isAssignableFrom(view.javaClass) || | |||
ScrollView::class.java.isAssignableFrom(view.javaClass) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one was missing from our supported Views
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nicely done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm! I've added few suggestions.
|
||
if (downTarget == upTarget && downTarget != null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would suggest to use ===
operator here to highlight that we want exactly same instance by reference (because who knows, maybe it will be some View
which redefines equals
).
GesturesListener.SCROLL_DIRECTION_RIGHT | ||
] | ||
) | ||
fun `M send a tap rum event if target is a non scrollabld`( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo here, should be scrollable
(I don't have suggestion button available, because reviewing individual commit)
f3c6383
This fixes #1389 |
What does this PR do?
A brief description of the change being made with this pull request.
Motivation
What inspired you to submit this pull request?
Additional Notes
Anything else we should know when reviewing?
Review checklist (to be filled by reviewers)