Skip to content

Commit

Permalink
Tweaked notification style as some people with low density display ca…
Browse files Browse the repository at this point in the history
…nnot read the HP value
  • Loading branch information
Pedro Diaz committed Sep 27, 2016
1 parent ec01738 commit 2d840b9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ void show(int pokemonNumber, String pokemonName, double iv, int attack, int defe
getLargeIconHeight(),
false
))
.setContentTitle(mContext.getString(R.string.notification_title, Helper.getPokemonName(pokemonNumber, mResources), cp, hp, level))
.setContentText(mContext.getString(R.string.notification_content, iv, attack, defense, stamina))
.setContentTitle(mContext.getString(R.string.notification_title, Helper.getPokemonName(pokemonNumber, mResources), cp, level))
.setContentText(mContext.getString(R.string.notification_content, iv, attack, defense, stamina, hp))
.setStyle(new NotificationCompat.InboxStyle()
.addLine(mContext.getString(R.string.notification_categoty_stats_content, iv, attack, defense, stamina))
.addLine(mContext.getString(R.string.notification_categoty_stats_content, iv, attack, defense, stamina, hp))
.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
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 (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_title">%1$s (CP %2$d) LV %3$3.1f</string>
<string name="notification_content">%1$4.1f%% [A/D/S %2$d/%3$d/%4$d] and HP %5$d</string>

<string name="notification_categoty_stats_title">Stats</string>
<string name="notification_categoty_stats_content">%1$4.1f%% [A/D/S %2$d/%3$d/%4$d]</string>
<string name="notification_categoty_stats_content">%1$4.1f%% [A/D/S %2$d/%3$d/%4$d] and HP %5$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 2d840b9

Please sign in to comment.