From a84868e3c1fe3bb7b1e2fa3dfade0a16fbcaceaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=82=98=ED=98=84=EC=84=9D?= Date: Tue, 16 Oct 2018 03:39:24 +0900 Subject: [PATCH] fix handleRadioEvent --- .../java/com/beardedhen/androidbootstrap/BootstrapButton.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AndroidBootstrap/src/main/java/com/beardedhen/androidbootstrap/BootstrapButton.java b/AndroidBootstrap/src/main/java/com/beardedhen/androidbootstrap/BootstrapButton.java index 5dc1af1..2783cce 100644 --- a/AndroidBootstrap/src/main/java/com/beardedhen/androidbootstrap/BootstrapButton.java +++ b/AndroidBootstrap/src/main/java/com/beardedhen/androidbootstrap/BootstrapButton.java @@ -218,7 +218,7 @@ public void setSelected(boolean selected) { } private boolean handleRadioEvent(@NonNull MotionEvent event) { - if (event.getAction() == MotionEvent.ACTION_DOWN) { + if (event.getAction() == MotionEvent.ACTION_UP) { setSelected(true); // notify parent to deselect any peers ViewParent parent = getParent();