~singpolyma/cheogram-android

8f61ba966432b992995b3b0aed630231a87f4a5b — Stephen Paul Weber 1 year, 7 months ago d206cff
Cancel all edits on back/collapse
1 files changed, 12 insertions(+), 0 deletions(-)

M src/main/java/eu/siacs/conversations/ui/ContactDetailsActivity.java
M src/main/java/eu/siacs/conversations/ui/ContactDetailsActivity.java => src/main/java/eu/siacs/conversations/ui/ContactDetailsActivity.java +12 -0
@@ 402,6 402,18 @@ public class ContactDetailsActivity extends OmemoActivity implements OnAccountUp
            edit.setVisible(false);
            delete.setVisible(false);
        }
        edit.setOnActionExpandListener(new MenuItem.OnActionExpandListener() {
            @Override
            public boolean onMenuItemActionCollapse(MenuItem item) {
                binding.editTags.setVisibility(View.GONE);
                if (save != null) save.setVisible(false);
                populateView();
                return true;
            }

            @Override
            public boolean onMenuItemActionExpand(MenuItem item) { return true; }
        });
        return super.onCreateOptionsMenu(menu);
    }