Skip to content
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

fix(android): extract material slider value attribute with reflection. #4203

Merged
merged 5 commits into from
Sep 27, 2023

Conversation

asafkorem
Copy link
Contributor

This fixes a ClassNotFoundException error that is thrown when the Slider class from the com.google.android.material.slider package is not found at runtime.

The solution is to use reflection instead of importing the Slider class, which may not necessarily exist in the app.

Also, I made a light refactoring for get-attributes related code.

@asafkorem
Copy link
Contributor Author

asafkorem commented Sep 27, 2023

Resolves #2846

@asafkorem asafkorem linked an issue Sep 27, 2023 that may be closed by this pull request
1 task
This fixes a `ClassNotFoundException` error that is thrown when the Slider class from the
 `com.google.android.material.slider` package is not found at runtime.

The solution is to use reflection instead of importing the Slider class,
 which may not necessarily exist in the app.

Also, I made a light refactoring for get-attributes related code.
@asafkorem asafkorem marked this pull request as draft September 27, 2023 13:14
@asafkorem asafkorem marked this pull request as ready for review September 27, 2023 13:48
@asafkorem asafkorem changed the title fix(android): extract material slider value with reflection. fix(android): extract material slider value attribute with reflection. Sep 27, 2023
@asafkorem asafkorem merged commit 446bc41 into master Sep 27, 2023
2 of 3 checks passed
@asafkorem asafkorem deleted the slider-get-attributes branch September 27, 2023 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

getAttributes() does not work in detox 18.14.0 in Android
1 participant