Skip to content
This repository has been archived by the owner on Feb 28, 2024. It is now read-only.

Fix setEnable(false) #323

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions material/src/main/java/com/rey/material/widget/Switch.java
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@ public void onRtlPropertiesChanged(int layoutDirection) {

@Override
public boolean onTouchEvent(@NonNull MotionEvent event) {
if ( !isEnabled() ) return true;
super.onTouchEvent(event);
getRippleManager().onTouchEvent(this, event);

Expand Down