mirror of
https://gitee.com/houstudio/Cdroid.git
synced 2024-12-03 12:48:56 +08:00
fix an uninitialized issue
This commit is contained in:
parent
564681de11
commit
2a06ed2100
@ -5,6 +5,10 @@
|
||||
|
||||
namespace cdroid{
|
||||
AdapterView::AdapterView(int w,int h):ViewGroup(w,h){
|
||||
initAdapterView();
|
||||
}
|
||||
|
||||
AdapterView::initAdapterView(){
|
||||
mFirstPosition=0;
|
||||
mOldItemCount= mItemCount =0;
|
||||
mSelectedPosition=INVALID_POSITION;
|
||||
@ -34,6 +38,7 @@ AdapterView::AdapterView(int w,int h):ViewGroup(w,h){
|
||||
|
||||
AdapterView::AdapterView(Context*ctx,const AttributeSet&atts)
|
||||
:ViewGroup(ctx,atts){
|
||||
initAdapterView();
|
||||
}
|
||||
|
||||
AdapterView::~AdapterView(){
|
||||
|
@ -35,6 +35,7 @@ private:
|
||||
Runnable mSelectionNotifier;
|
||||
Runnable mPendingSelectionNotifier;
|
||||
bool mDesiredFocusableInTouchModeState;
|
||||
void initAdapterView();
|
||||
void updateEmptyStatus(bool empty);
|
||||
void dispatchOnItemSelected();
|
||||
void fireOnSelected();
|
||||
|
Loading…
Reference in New Issue
Block a user