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

Commit

Permalink
Fix UIButton hover issue after changing enabled state (#2786)
Browse files Browse the repository at this point in the history
  • Loading branch information
keianhzo authored Feb 14, 2020
1 parent 8a820da commit 9f7a764
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -285,4 +285,10 @@ public void setLayoutWidth(@NonNull @Dimension float dimen) {
setLayoutParams(params);
}

@Override
public void setEnabled(boolean enabled) {
super.setEnabled(enabled);

setHovered(false);
}
}

0 comments on commit 9f7a764

Please sign in to comment.