From be5b608967bbff611c86d12bb4b7ce6726824fec Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 19 Aug 2018 04:54:37 +0000 Subject: [PATCH] Fixed distraction free reading --- app/src/main/java/eu/faircode/email/FragmentMessage.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/FragmentMessage.java b/app/src/main/java/eu/faircode/email/FragmentMessage.java index 014c7572..f7e70c14 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessage.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessage.java @@ -208,16 +208,22 @@ public class FragmentMessage extends FragmentEx { getActivity().invalidateOptionsMenu(); grpHeader.setVisibility(free ? View.GONE : View.VISIBLE); if (free) { + tvCount.setTag(tvCount.getVisibility()); + tvError.setTag(tvError.getVisibility()); fab.setImageResource(R.drawable.baseline_fullscreen_exit_24); addresses = (grpAddresses.getVisibility() != View.GONE); grpAddresses.setVisibility(View.GONE); grpAttachments.setVisibility(View.GONE); + tvCount.setVisibility(View.GONE); + tvError.setVisibility(View.GONE); } else { fab.setImageResource(R.drawable.baseline_fullscreen_24); if (addresses) grpAddresses.setVisibility(View.VISIBLE); if (rvAttachment.getAdapter().getItemCount() > 0) grpAttachments.setVisibility(View.VISIBLE); + tvCount.setVisibility((int) tvCount.getVisibility()); + tvError.setVisibility((int) tvError.getVisibility()); } } });