Browse Source

Disabled attachment item animations

main
M66B 6 years ago
parent
commit
0a4c69944a
2 changed files with 2 additions and 0 deletions
  1. +1
    -0
      app/src/main/java/eu/faircode/email/FragmentCompose.java
  2. +1
    -0
      app/src/main/java/eu/faircode/email/FragmentMessage.java

+ 1
- 0
app/src/main/java/eu/faircode/email/FragmentCompose.java View File

@ -333,6 +333,7 @@ public class FragmentCompose extends FragmentEx {
rvAttachment.setHasFixedSize(false); rvAttachment.setHasFixedSize(false);
LinearLayoutManager llm = new LinearLayoutManager(getContext()); LinearLayoutManager llm = new LinearLayoutManager(getContext());
rvAttachment.setLayoutManager(llm); rvAttachment.setLayoutManager(llm);
rvAttachment.setItemAnimator(null);
adapter = new AdapterAttachment(getContext(), getViewLifecycleOwner(), false); adapter = new AdapterAttachment(getContext(), getViewLifecycleOwner(), false);
rvAttachment.setAdapter(adapter); rvAttachment.setAdapter(adapter);


+ 1
- 0
app/src/main/java/eu/faircode/email/FragmentMessage.java View File

@ -377,6 +377,7 @@ public class FragmentMessage extends FragmentEx {
rvAttachment.setHasFixedSize(false); rvAttachment.setHasFixedSize(false);
LinearLayoutManager llm = new LinearLayoutManager(getContext()); LinearLayoutManager llm = new LinearLayoutManager(getContext());
rvAttachment.setLayoutManager(llm); rvAttachment.setLayoutManager(llm);
rvAttachment.setItemAnimator(null);
adapter = new AdapterAttachment(getContext(), getViewLifecycleOwner(), true); adapter = new AdapterAttachment(getContext(), getViewLifecycleOwner(), true);
rvAttachment.setAdapter(adapter); rvAttachment.setAdapter(adapter);


Loading…
Cancel
Save