Skip to content

Commit

Permalink
Now vibration is removed without losing the head up
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro Diaz committed Sep 27, 2016
1 parent b33ae3e commit 592a569
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ void show(int pokemonNumber, String pokemonName, double iv, int attack, int defe
getLargeIconHeight(),
false
))
.setContentTitle(mContext.getString(R.string.notification_title, pokemonName))
.setContentText(mContext.getString(R.string.notification_content, iv, attack, defense, stamina, cp, level, hp))
.setContentTitle(mContext.getString(R.string.notification_title, pokemonName, cp, hp, level))
.setContentText(mContext.getString(R.string.notification_content, iv, attack, defense, stamina))
.setStyle(new NotificationCompat.InboxStyle()
.addLine(mContext.getString(R.string.notification_categoty_stats_content, iv, attack, defense, stamina, cp, level, hp))
.addLine(mContext.getString(R.string.notification_categoty_stats_content, iv, attack, defense, stamina))
.addLine(getBoldSpannable(mContext.getString(R.string.notification_categoty_moves_title)))
.addLine(mContext.getString(R.string.notification_categoty_moves_content, move1, move2))
.addLine(getBoldSpannable(mContext.getString(R.string.notification_categoty_catch_title)))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,12 @@ int getNumber() {
String getName() {
StringBuilder builder = new StringBuilder();
for (String part : mPokemon.getPokemonId().name().split("_")) {
builder
.append(part.charAt(0))
.append(part.substring(1).toLowerCase(Locale.US))
.append(" ");
if (!part.equalsIgnoreCase("male") && !part.equalsIgnoreCase("female")) {
builder
.append(part.charAt(0))
.append(part.substring(1).toLowerCase(Locale.US))
.append(" ");
}
}
return builder.toString().trim();
}
Expand Down
6 changes: 3 additions & 3 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
<string name="error_xposed_missing">Install xposed to use Snorlax</string>
<string name="error_pokemon_missing">Install Pokemon Go to launch it</string>

<string name="notification_title">%1$s has appeared!</string>
<string name="notification_content">IV %1$4.1f%% %2$d/%3$d/%4$d - CP %5$d - LV %6$3.1f - HP %7$d</string>
<string name="notification_title">%1$s (CP %2$d HP %3$d) LV %4$3.1f</string>
<string name="notification_content">%1$4.1f%% [A/D/S %2$d/%3$d/%4$d]</string>

<string name="notification_categoty_stats_title">Stats</string>
<string name="notification_categoty_stats_content">IV %1$4.1f%% %2$d/%3$d/%4$d - CP %5$d - LV %6$3.1f - HP %7$d</string>
<string name="notification_categoty_stats_content">%1$4.1f%% [A/D/S %2$d/%3$d/%4$d]</string>

<string name="notification_categoty_moves_title">Moves</string>
<string name="notification_categoty_moves_content">%1$s - %2$s</string>
Expand Down

0 comments on commit 592a569

Please sign in to comment.