From 141c2de28810fff62bbf6da2b120495536d8c0a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20D=C3=ADaz?= Date: Fri, 7 Oct 2016 19:24:36 -0400 Subject: [PATCH] Don't show missed on capture responses --- .../com/icecream/snorlax/module/feature/capture/Capture.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/icecream/snorlax/module/feature/capture/Capture.java b/app/src/main/java/com/icecream/snorlax/module/feature/capture/Capture.java index bb8dd04..2f2d9c7 100644 --- a/app/src/main/java/com/icecream/snorlax/module/feature/capture/Capture.java +++ b/app/src/main/java/com/icecream/snorlax/module/feature/capture/Capture.java @@ -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());