Skip to content

Commit

Permalink
[#6]: Check if spinner is disabled before call performClick()
Browse files Browse the repository at this point in the history
  • Loading branch information
Chivorns committed Aug 18, 2019
1 parent 503a164 commit 8a8d022
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ public boolean dispatchTouchEvent(MotionEvent event) {
@SuppressLint("ClickableViewAccessibility")
@Override
public boolean onTouchEvent(MotionEvent event) {
if (event.getAction() == MotionEvent.ACTION_UP) {
if (isEnabled() && event.getAction() == MotionEvent.ACTION_UP) {
return performClick();
}
return true;
Expand Down

0 comments on commit 8a8d022

Please sign in to comment.