Fixed expander touch area

This commit is contained in:
M66B 2019-01-24 07:10:51 +00:00
parent 4de27cae55
commit d8c7d0e623
1 changed files with 2 additions and 2 deletions

View File

@ -326,9 +326,9 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
public void run() { public void run() {
Rect rect = new Rect( Rect rect = new Rect(
itemView.getLeft(), itemView.getLeft(),
touch.getTop(), vwColor.getTop(),
itemView.getRight(), itemView.getRight(),
touch.getBottom()); vwColor.getBottom());
Log.i("Touch delegate=" + rect); Log.i("Touch delegate=" + rect);
itemView.setTouchDelegate(new TouchDelegate(rect, touch)); itemView.setTouchDelegate(new TouchDelegate(rect, touch));
} }