Fixed color stripe disabling

Closes #171
This commit is contained in:
M66B 2019-12-31 09:21:48 +01:00
parent 4bba285da1
commit ff2ae2312e
1 changed files with 6 additions and 4 deletions

View File

@ -262,6 +262,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
BottomNavigationView.OnNavigationItemSelectedListener { BottomNavigationView.OnNavigationItemSelectedListener {
private ViewCardOptional card; private ViewCardOptional card;
private View view; private View view;
private View header;
private View vwColor; private View vwColor;
private ImageButton ibExpander; private ImageButton ibExpander;
@ -385,6 +386,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
card = itemView.findViewById(R.id.card); card = itemView.findViewById(R.id.card);
view = itemView.findViewById(R.id.clItem); view = itemView.findViewById(R.id.clItem);
header = itemView.findViewById(R.id.inHeader);
vwColor = itemView.findViewById(R.id.vwColor); vwColor = itemView.findViewById(R.id.vwColor);
ibExpander = itemView.findViewById(R.id.ibExpander); ibExpander = itemView.findViewById(R.id.ibExpander);
@ -560,10 +562,10 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
@Override @Override
public void run() { public void run() {
Rect rect = new Rect( Rect rect = new Rect(
view.getLeft(), header.getLeft(),
vwColor.getTop(), header.getTop(),
view.getRight(), header.getRight(),
vwColor.getBottom()); header.getBottom());
view.setTouchDelegate(new TouchDelegate(rect, touch)); view.setTouchDelegate(new TouchDelegate(rect, touch));
} }
}); });