mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-28 02:37:16 +00:00
Small improvement
This commit is contained in:
parent
e62e661a24
commit
16e07f255f
1 changed files with 14 additions and 13 deletions
|
@ -557,20 +557,21 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
}
|
||||
|
||||
private void wire() {
|
||||
final View touch = (viewType == ViewType.THREAD ? ibExpander : vwColor);
|
||||
final View touch = (viewType == ViewType.THREAD ? ibExpander : header);
|
||||
touch.setOnClickListener(this);
|
||||
view.post(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
Rect rect = new Rect(
|
||||
header.getLeft(),
|
||||
header.getTop(),
|
||||
header.getRight(),
|
||||
header.getBottom());
|
||||
view.setTouchDelegate(new TouchDelegate(rect, touch));
|
||||
}
|
||||
});
|
||||
view.setOnKeyListener(this);
|
||||
if (touch == ibExpander)
|
||||
header.post(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
Rect rect = new Rect(
|
||||
header.getLeft(),
|
||||
header.getTop(),
|
||||
header.getRight(),
|
||||
header.getBottom());
|
||||
header.setTouchDelegate(new TouchDelegate(rect, touch));
|
||||
}
|
||||
});
|
||||
header.setOnKeyListener(this);
|
||||
|
||||
ibAvatar.setOnClickListener(this);
|
||||
ibAuth.setOnClickListener(this);
|
||||
|
|
Loading…
Reference in a new issue