Skip to content

Commit

Permalink
- Removed notification vibration
Browse files Browse the repository at this point in the history
- Minor text fixes
- Removed "fast" from pokemon first move
  • Loading branch information
Pedro Diaz committed Sep 27, 2016
1 parent ca6aa02 commit f33e724
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,12 @@ public final class Encounter implements Feature {
private String formatMove(String move) {
StringBuilder builder = new StringBuilder();
for (String part : move.split("_")) {
builder
.append(part.charAt(0))
.append(part.substring(1).toLowerCase(Locale.US))
.append(" ");
if (!part.equalsIgnoreCase("fast")) {
builder
.append(part.charAt(0))
.append(part.substring(1).toLowerCase(Locale.US))
.append(" ");
}
}
return builder.toString().trim();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ void show(int pokemonNumber, String pokemonName, double iv, int attack, int defe
)
.setColor(ContextCompat.getColor(mContext, R.color.red_700))
.setAutoCancel(true)
.setVibrate(new long[]{0, 60, 300, 60})
//.setVibrate(new long[]{0, 60, 300, 60})
.setPriority(Notification.PRIORITY_MAX)
.setCategory(NotificationCompat.CATEGORY_ALARM)
.build();
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<string name="preference_encounter_notification">Encounter Notifications</string>
<string name="preference_encounter_notification_enable_key">encounter_notification_key</string>
<string name="preference_encounter_notification_enable_title">Enable encounter notifications</string>
<string name="preference_encounter_notification_enable_summary">Show encountered encounterPokemon stats via system notification</string>
<string name="preference_encounter_notification_enable_summary">Show encounter pokemons stats via system notification</string>

<string name="preference_catch_notification">Catch Notifications</string>
<string name="preference_catch_notification_enable_key">catch_notification_key</string>
Expand Down

0 comments on commit f33e724

Please sign in to comment.