mirror of
https://github.com/nextcloud/notes-android.git
synced 2024-11-21 12:25:57 +03:00
fix: unable to edit from preview mode
When direct edit is enabled and note opening behavior is set to either plain edit mode or plain preview the note cannot be edited from the preview fragment. This is because of visibility settings of the two FABs not being set properly. Signed-off-by: jhavens1566 <johnathon.havens@gmail.com>
This commit is contained in:
parent
4fcab00e0b
commit
2993b3cf12
1 changed files with 3 additions and 0 deletions
|
@ -87,8 +87,11 @@ public abstract class SearchableBaseNoteFragment extends BaseNoteFragment {
|
|||
super.onViewCreated(view, savedInstanceState);
|
||||
checkDirectEditingAvailable();
|
||||
if (isDirectEditEnabled()) {
|
||||
ExtendedFloatingActionButton edit = getNormalEditButton();
|
||||
if (edit != null) edit.setVisibility(View.GONE);
|
||||
final ExtendedFloatingActionButton directEditingButton = getDirectEditingButton();
|
||||
directEditingButton.setExtended(false);
|
||||
directEditingButton.setVisibility(View.VISIBLE);
|
||||
ExtendedFabUtil.toggleExtendedOnLongClick(directEditingButton);
|
||||
directEditingButton.setOnClickListener(v -> {
|
||||
if (listener != null) {
|
||||
|
|
Loading…
Reference in a new issue