Visibility fix send dialog

This commit is contained in:
M66B 2023-10-20 08:08:05 +02:00
parent 8cbb80f2c9
commit 7ea4750a6f
1 changed files with 8 additions and 0 deletions

View File

@ -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);