fix some prototypes of recyclerview.adapter

This commit is contained in:
侯歌 2024-05-05 16:37:31 +08:00
parent 43db51fb58
commit 716b55884b
2 changed files with 7 additions and 7 deletions

View File

@ -1873,9 +1873,9 @@ bool RecyclerView::onTouchEvent(MotionEvent& e) {
}
} break;
case MotionEvent::ACTION_POINTER_UP: {
onPointerUp(e);
} break;
case MotionEvent::ACTION_POINTER_UP:
onPointerUp(e);
break;
case MotionEvent::ACTION_UP: {
mVelocityTracker->addMovement(*vtev);
@ -1889,9 +1889,9 @@ bool RecyclerView::onTouchEvent(MotionEvent& e) {
resetTouch();
} break;
case MotionEvent::ACTION_CANCEL: {
cancelTouch();
} break;
case MotionEvent::ACTION_CANCEL:
cancelTouch();
break;
}
if (!eventAddedToVelocityTracker) {

View File

@ -209,7 +209,7 @@ public:/*public classes*/
virtual bool onFailedToRecycleView(ViewHolder& holder);
virtual void onViewAttachedToWindow(ViewHolder& holder);
virtual void onViewDetachedFromWindow(ViewHolder& holder);
bool hasObservers()const final;
bool hasObservers()const;
void registerAdapterDataObserver(AdapterDataObserver* observer);
void unregisterAdapterDataObserver(AdapterDataObserver* observer);
virtual void onAttachedToRecyclerView(RecyclerView& recyclerView);