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

Overwrite character in names #91 #146

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

flicker71
Copy link

I do the issue #91
I hope it will be accepted

Result of home
image
Result of pokemon Detail
image

I explained my changes directly in the code, but here's a brief summary.

I had to modify the Pokemon data class because the 'name' field was declared as 'val,' making it immutable. I changed it to 'var' to allow modifications to this value. Additionally, I added a simple 'replace' statement in both the PokemonAdapter and the DetailActivity to modify the value.

Guidelines

Describe the big picture of your changes here to communicate to the maintainers why we should accept this pull request. If it fixes a bug or resolves a feature request, be sure to link to that issue.

Types of changes

What types of changes does your code introduce?

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Preparing a pull request for review

Ensure your change is properly formatted by running:

$ ./gradlew spotlessApply

Please correct any failures before requesting a review.

I do the issue skydoves#91
I hope it will be accepted
@inson1
Copy link

inson1 commented Mar 1, 2024

@flicker71 btw did you though about Pokemons, that actually have "-" in their name? There should be some exception list, right?

by these pokedex there is 9 of these pokemons
https://pokemondb.net/pokedex/all
https://www.pokemon.com/us/pokedex

Sorry that I didnt include it in the fr, I thought about it only now

Or I'm wrong?

@skydoves
Copy link
Owner

Hey @flicker71, thanks for working on this PR! It would be great if we can incorporate this logic into the #165.

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.

None yet

3 participants