Skip to content

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

Merged
almic merged 1 commit intoPhilJay:masterfrom
RobertZagorski:feature/remove-redundant-findViewById-casts
May 13, 2018
Merged

[Enhancement] Remove redundant findViewById casts in example application#4018
almic merged 1 commit intoPhilJay:masterfrom
RobertZagorski:feature/remove-redundant-findViewById-casts

Conversation

@RobertZagorski
Copy link
Copy Markdown
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
Copy Markdown
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