Attempt to workaround ConstraintLayout issue

Refs androidx/constraintlayout#430
This commit is contained in:
M66B 2021-11-10 10:29:28 +01:00
parent 7aeb2d31ca
commit 0098fdc2f1
1 changed files with 4 additions and 2 deletions

View File

@ -1589,8 +1589,10 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
ConstraintLayout cl = (ConstraintLayout) flow.getParent();
for (int id : flow.getReferencedIds()) {
View v = cl.findViewById(id);
flow.removeView(v);
cl.removeView(v);
// flow.removeView(v);
// cl.removeView(v);
// https://github.com/androidx/constraintlayout/issues/430
v.setVisibility(View.GONE);
}
}