Skip to content

Commit

Permalink
Don't show missed on capture responses
Browse files Browse the repository at this point in the history
  • Loading branch information
igoticecream committed Oct 7, 2016
1 parent 71ab9ca commit 141c2de
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ public final class Capture implements Feature {
private void onCapture(ByteString bytes) {
try {
CatchPokemonResponse response = CatchPokemonResponse.parseFrom(bytes);
mCaptureNotification.show(formatCapture(response.getStatus().name()));

if (!response.getStatus().equals(CatchPokemonResponse.CatchStatus.CATCH_MISSED)) {
mCaptureNotification.show(formatCapture(response.getStatus().name()));
}
}
catch (InvalidProtocolBufferException e) {
Log.d("CatchPokemonResponse failed: %s" + e.getMessage());
Expand Down

0 comments on commit 141c2de

Please sign in to comment.