From 0a4c69944a8256a1bbb7592ec245d26b9b067879 Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 3 Sep 2018 18:22:10 +0000 Subject: [PATCH] Disabled attachment item animations --- app/src/main/java/eu/faircode/email/FragmentCompose.java | 1 + app/src/main/java/eu/faircode/email/FragmentMessage.java | 1 + 2 files changed, 2 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/FragmentCompose.java b/app/src/main/java/eu/faircode/email/FragmentCompose.java index b084b9a2..9a01d54f 100644 --- a/app/src/main/java/eu/faircode/email/FragmentCompose.java +++ b/app/src/main/java/eu/faircode/email/FragmentCompose.java @@ -333,6 +333,7 @@ public class FragmentCompose extends FragmentEx { rvAttachment.setHasFixedSize(false); LinearLayoutManager llm = new LinearLayoutManager(getContext()); rvAttachment.setLayoutManager(llm); + rvAttachment.setItemAnimator(null); adapter = new AdapterAttachment(getContext(), getViewLifecycleOwner(), false); rvAttachment.setAdapter(adapter); diff --git a/app/src/main/java/eu/faircode/email/FragmentMessage.java b/app/src/main/java/eu/faircode/email/FragmentMessage.java index 15cf4b7a..eba243e0 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessage.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessage.java @@ -377,6 +377,7 @@ public class FragmentMessage extends FragmentEx { rvAttachment.setHasFixedSize(false); LinearLayoutManager llm = new LinearLayoutManager(getContext()); rvAttachment.setLayoutManager(llm); + rvAttachment.setItemAnimator(null); adapter = new AdapterAttachment(getContext(), getViewLifecycleOwner(), true); rvAttachment.setAdapter(adapter);