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

[Enhancement] Remove redundant findViewById casts in example application #4018

Conversation

RobertZagorski
Copy link
Contributor

@RobertZagorski RobertZagorski commented May 10, 2018

PR Checklist:

  • I have tested this extensively and it does not break any existing behavior.
    Yep, opened the example app, clicked through it to see, if views initialise properly.
  • I have added/updated examples and tests for any new behavior.
    Modified existing ones.
  • If this is a significant change, an issue has already been created where the problem / solution was discussed
    This was suggested in PR 3975 that migrated the project to newest Gradle version and Gradle version plugin.

PR Description

After migration to API 26, new version of findViewById method was added that caused, that casts to specific view instance is unnecessary. This PR removes those unnecessary casts.

@almic
Copy link
Contributor

almic commented May 13, 2018

Awesome, must've been a little tedious!

@almic almic added the style style only, underlying meaning is unchanged label May 13, 2018
@almic almic merged commit fe7a0f8 into PhilJay:master May 13, 2018
regas99 pushed a commit to regas99/MPAndroidChart that referenced this pull request Apr 1, 2019
…dundant-findViewById-casts

[Enhancement] Remove redundant findViewById casts in example application
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
style style only, underlying meaning is unchanged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants