|
@@ -178,11 +178,13 @@ public class RecordDetailFragment extends UpNavigatibleFragment {
|
|
|
@Override
|
|
|
public boolean onTouch(final View v, final MotionEvent motionEvent) {
|
|
|
if (v.getId() == R.id.record_conversation_content) {
|
|
|
- v.getParent().requestDisallowInterceptTouchEvent(true);
|
|
|
- switch (motionEvent.getAction() & MotionEvent.ACTION_MASK) {
|
|
|
- case MotionEvent.ACTION_UP:
|
|
|
- v.getParent().requestDisallowInterceptTouchEvent(false);
|
|
|
- break;
|
|
|
+ if (v.canScrollVertically(1) || v.canScrollVertically(-1)) {
|
|
|
+ v.getParent().requestDisallowInterceptTouchEvent(true);
|
|
|
+ switch (motionEvent.getAction() & MotionEvent.ACTION_MASK) {
|
|
|
+ case MotionEvent.ACTION_UP:
|
|
|
+ v.getParent().requestDisallowInterceptTouchEvent(false);
|
|
|
+ break;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
return false;
|