From 7ea4750a6f3ae56c556f82e7317030ec172d90d9 Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 20 Oct 2023 08:08:05 +0200 Subject: [PATCH] Visibility fix send dialog --- .../main/java/eu/faircode/email/FragmentDialogSend.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/FragmentDialogSend.java b/app/src/main/java/eu/faircode/email/FragmentDialogSend.java index 2aedd462af..998bba683c 100644 --- a/app/src/main/java/eu/faircode/email/FragmentDialogSend.java +++ b/app/src/main/java/eu/faircode/email/FragmentDialogSend.java @@ -236,9 +236,13 @@ public class FragmentDialogSend extends FragmentDialogBase { public void onClick(View v) { if (grpMore.getVisibility() == View.VISIBLE) { ibMore.setImageLevel(1); + tvPlainHint.setVisibility(View.GONE); + tvReceiptHint.setVisibility(View.GONE); grpMore.setVisibility(View.GONE); } else { ibMore.setImageLevel(0); + tvPlainHint.setVisibility(cbPlainOnly.isChecked() && styled ? View.VISIBLE : View.GONE); + tvReceiptHint.setVisibility(cbReceipt.isChecked() ? View.VISIBLE : View.GONE); grpMore.setVisibility(View.VISIBLE); } prefs.edit().putBoolean("send_more", grpMore.getVisibility() == View.VISIBLE).apply(); @@ -285,6 +289,10 @@ public class FragmentDialogSend extends FragmentDialogBase { @Override public void onCheckedChanged(CompoundButton compoundButton, boolean checked) { tvReceiptHint.setVisibility(checked ? View.VISIBLE : View.GONE); + if (checked && grpMore.getVisibility() != View.VISIBLE) { + ibMore.setImageLevel(0); + grpMore.setVisibility(View.VISIBLE); + } Bundle args = new Bundle(); args.putLong("id", id);