Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

[Android] fix android component not reset clickable when remove click event #3352

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
Original file line number Diff line number Diff line change
Expand Up @@ -1565,6 +1565,9 @@ protected void removeEventFromView(String type) {
}
mHostClickListeners.remove(mClickEventListener);
//click event only remove from listener array
if (mHostClickListeners.isEmpty()) {
getRealView().setClickable(false);
}
}
Scrollable scroller = getParentScroller();
if (type.equals(Constants.Event.APPEAR) && scroller != null) {
Expand Down