mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-01 18:41:20 +01:00
Small behavior improvement
This commit is contained in:
@@ -300,6 +300,15 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||
super.itemView.getBottom());
|
||||
}
|
||||
|
||||
void setDisplacement(float dx) {
|
||||
ViewGroup group = (ViewGroup) itemView;
|
||||
for (int i = 0; i < group.getChildCount(); i++) {
|
||||
View child = group.getChildAt(i);
|
||||
if (child.getId() != R.id.tvDay && child.getId() != R.id.vSeparatorDay)
|
||||
child.setTranslationX(dx);
|
||||
}
|
||||
}
|
||||
|
||||
private void wire() {
|
||||
final View touch = (viewType == ViewType.THREAD && threading ? ivExpander : vwColor);
|
||||
touch.setOnClickListener(this);
|
||||
|
||||
Reference in New Issue
Block a user