mirror of https://github.com/M66B/FairEmail.git
Visibility fix send dialog
This commit is contained in:
parent
8cbb80f2c9
commit
7ea4750a6f
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue