Teambuilder

Fixed import/export (moves + items were wrong)
Addign a decent nickname to created/imported teams
moving a bunch of strings to strings.xml
Copy pasting, the bane of every dev!
On 27 Nov 2014 03:01, "NamTThai" <notifications@github.com> wrote:

> In app/src/main/java/com/pokemonshowdown/data/Pokemon.java:
>
> > +            pokemonItem = nameItem[1];
> > +            pokemonMainData = nameItem[0];
> > +        }
> > +        String tmpString = pokemonMainData;
> > +        String[] tmpSplit = tmpString.trim().split(" ");
> > +        switch (tmpSplit.length) {
> > +            case 1:
> > +                pokemonName = tmpSplit[0].trim();
> > +                break;
> > +
> > +            case 2:
> > +                // name (gender)
> > +                // nickname (name)
> > +                if (tmpString.contains("(") && tmpString.contains(")")) {
> > +                    String gender = tmpString.substring(tmpString.indexOf("(") + 1, tmpString.indexOf(")"));
> > +                    if (gender.equals("M") || gender.equals("M") || gender.equals("M")) {
>
> Huh?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/NamTThai/PokemonShowdownAndroidClient/pull/40/files#r20976003>
> .
>