From 236e4419be011caf7f533edaa9cc1d607f70f523 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Sat, 15 Aug 2020 12:04:50 +0000 Subject: [PATCH] HueRing: override/call performClick() linter insists this would help accessibility --- app/src/main/java/net/ktnx/mobileledger/ui/HueRing.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/HueRing.java b/app/src/main/java/net/ktnx/mobileledger/ui/HueRing.java index 435c8c6d..6e52dcff 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/HueRing.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/HueRing.java @@ -207,6 +207,10 @@ public class HueRing extends View { centerRect.set(-centerR, -centerR, centerR, centerR); } @Override + public boolean performClick() { + return super.performClick(); + } + @Override public boolean onTouchEvent(MotionEvent event) { switch (event.getAction()) { case MotionEvent.ACTION_DOWN: @@ -233,8 +237,10 @@ public class HueRing extends View { hue)); setHue(hue); break; + case MotionEvent.ACTION_UP: + performClick(); + break; } - return true; } public void setInitialHue(int initialHue) { -- 2.39.5