remove virtual keyqord from View::onFilterTouchEventForSecurity

This commit is contained in:
侯歌 2024-07-10 17:22:12 +08:00
parent 316f8996f3
commit 2886c7d72c
2 changed files with 2 additions and 2 deletions

View File

@ -6065,7 +6065,7 @@ int View::commitText(const std::wstring&ws){
}
bool View::canReceivePointerEvents()const{
return (mViewFlags & VISIBILITY_MASK) == VISIBLE || getAnimation() != nullptr;
return ((mViewFlags & VISIBILITY_MASK) == VISIBLE) || (getAnimation() != nullptr);
}
bool View::getFilterTouchesWhenObscured() const{

View File

@ -613,8 +613,8 @@ protected:
bool canReceivePointerEvents()const;
bool getFilterTouchesWhenObscured()const;
View& setFilterTouchesWhenObscured(bool enabled);
bool onFilterTouchEventForSecurity(MotionEvent& event);
virtual bool dispatchHoverEvent(MotionEvent&event);
virtual bool onFilterTouchEventForSecurity(MotionEvent& event);
virtual bool dispatchTrackballEvent(MotionEvent& event);
virtual bool dispatchCapturedPointerEvent(MotionEvent& event);
virtual bool dispatchGenericPointerEvent(MotionEvent& event);