Fixed an issue the triple tap did not work.
The mState value is wrong.
So, only single and double taps are possible,
and no more taps are called.
And it removes unreachable code.
uint32_t deltaBetweenTouchDownTouchUp = event.time - mTouchTime;
if(deltaBetweenTouchDownTouchUp < MAXIMUM_TIME_ALLOWED)
{
// mLastTapTime is equal to or greater than mTouchTime;
// so If deltaBetweenTouchDownTouchUp is less than MAXIMUM_TIME_ALLOWED
// then timeDelta is never it cannot be greater than MAXIMUM_TIME_ALLOWED.
uint32_t timeDelta = event.time - mLastTapTime;
if(timeDelta > MAXIMUM_TIME_ALLOWED)
{
// unreachable block
}
}
Change-Id: Icd719bda146a82f0b25cb123e36395c9b5aa8f5f