SlidingMenu
SlidingMenu copied to clipboard
Content stop responding in specific condition
Hi, In following scenario, content of component are stop working.
- Open side menu.
- Slides finger diagonally from main content (small strip on screen) to side menu. Make sure that it does not cause to close the menu.
- press system back button.
- main content will stop responding.
After debugging the code, we found is: endDrag() function is not called, which causes the problem.
To fix the issue, we made following changes. If anyone can review and validate the fix, that will be helpful.
In customviewabove.java file, in onTouchEvent() function, I added following code: " final int action = ev.getAction(); if (!mIsBeingDragged && !thisTouchAllowed(ev)) { if((action & MotionEventCompat.ACTION_MASK) == MotionEvent.ACTION_UP) { if (mQuickReturn) { endDrag(); } } return false; } "