mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-27 10:17:18 +00:00
parent
3093503590
commit
898dc1f6a7
1 changed files with 2 additions and 11 deletions
|
@ -2623,17 +2623,8 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
} else
|
||||
return false;
|
||||
} else {
|
||||
if (view.getId() == R.id.tvBody)
|
||||
view.getParent().requestDisallowInterceptTouchEvent(false);
|
||||
else {
|
||||
boolean xm = view.canScrollHorizontally(-1);
|
||||
boolean xp = view.canScrollHorizontally(1);
|
||||
boolean ym = view.canScrollVertically(-1);
|
||||
boolean yp = view.canScrollVertically(1);
|
||||
boolean zoomed = (xm || xp || ym || yp);
|
||||
view.getParent().requestDisallowInterceptTouchEvent(zoomed);
|
||||
}
|
||||
return false;
|
||||
view.getParent().requestDisallowInterceptTouchEvent(false);
|
||||
return (view.getId() == R.id.wvBody && ev.getAction() == MotionEvent.ACTION_MOVE);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue