From: Damyan Ivanov Date: Sat, 15 Aug 2020 12:04:50 +0000 (+0000) Subject: HueRing: override/call performClick() X-Git-Tag: v0.15.0~61 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=236e4419be011caf7f533edaa9cc1d607f70f523;p=mobile-ledger.git HueRing: override/call performClick() linter insists this would help accessibility --- 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) {