mirror of
https://gitee.com/houstudio/Cdroid.git
synced 2024-12-02 04:07:42 +08:00
modify inputeventsource,read event in thread
This commit is contained in:
parent
193a78a0ae
commit
4553ebb9ca
@ -109,7 +109,7 @@ int InputEventSource::handleEvents(){
|
||||
}
|
||||
|
||||
int InputEventSource::process(){
|
||||
LOGD_IF(mRawEvents.size(),"%p recv %d events ",this,mRawEvents.size());
|
||||
LOGV_IF(mRawEvents.size(),"%p recv %d events ",this,mRawEvents.size());
|
||||
while(mRawEvents.size()){
|
||||
const INPUTEVENT e=mRawEvents.front();
|
||||
struct timeval tv={e.tv_sec,e.tv_usec};
|
||||
|
@ -21,9 +21,9 @@ ViewPager::ViewPager(int w,int h):ViewGroup(w,h){
|
||||
|
||||
ViewPager::~ViewPager(){
|
||||
delete mLeftEdge;
|
||||
delete mRightEdge;
|
||||
delete mMarginDrawable;
|
||||
delete mScroller;
|
||||
delete mRightEdge;
|
||||
delete mMarginDrawable;
|
||||
delete mScroller;
|
||||
}
|
||||
|
||||
ViewPager::ViewPager(Context* context,const AttributeSet& attrs)
|
||||
@ -55,7 +55,7 @@ void ViewPager::initViewPager(){
|
||||
mTouchSlop = configuration.getScaledPagingTouchSlop();
|
||||
mMinimumVelocity = (int) (MIN_FLING_VELOCITY * density);
|
||||
mMaximumVelocity = configuration.getScaledMaximumFlingVelocity();
|
||||
mLeftEdge = new EdgeEffect(context);
|
||||
mLeftEdge = new EdgeEffect(context);
|
||||
mRightEdge = new EdgeEffect(context);
|
||||
mMarginDrawable =nullptr;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user