fix some uninit variables

This commit is contained in:
houzh 2022-03-18 07:16:40 +00:00
parent c1a52ef4c4
commit a45d49e604
2 changed files with 4 additions and 2 deletions

View File

@ -271,9 +271,10 @@ void AbsListView::initAbsListView(const AttributeSet&atts) {
mFlingRunnable = std::bind(&AbsListView::FLY_Proc,this);
mCheckFlywheel = std::bind(&AbsListView::FLY_CheckFlyWheelProc,this);
mWidthMeasureSpec=0;
mSelector = nullptr;
mSelector = nullptr;
mDirection = 0;
mCacheColorHint = 0;
mWidthMeasureSpec = 0;
mResurrectToPosition = INVALID_POSITION;
mLayoutMode = LAYOUT_FORCE_TOP;
mTouchMode = TOUCH_MODE_REST ;

View File

@ -11,6 +11,7 @@ FastScroller::FastScroller(AbsListView*listView,const std::string& styleResId){
mOldItemCount = listView->getCount();
mOldChildCount = listView->getChildCount();
mHeaderCount = 0;
mFirstVisibleItem = 0;
Context* context = listView->getContext();
mScaledTouchSlop = ViewConfiguration::get(context).getScaledTouchSlop();