mirror of
https://github.com/nextcloud/notes-android.git
synced 2024-11-21 20:35:58 +03:00
Merge pull request #2383 from jhavens1566/main
fix: unable to edit from preview mode
This commit is contained in:
commit
0d79950ecf
1 changed files with 3 additions and 0 deletions
|
@ -89,8 +89,11 @@ public abstract class SearchableBaseNoteFragment extends BaseNoteFragment {
|
||||||
super.onViewCreated(view, savedInstanceState);
|
super.onViewCreated(view, savedInstanceState);
|
||||||
checkDirectEditingAvailable();
|
checkDirectEditingAvailable();
|
||||||
if (isDirectEditEnabled()) {
|
if (isDirectEditEnabled()) {
|
||||||
|
ExtendedFloatingActionButton edit = getNormalEditButton();
|
||||||
|
if (edit != null) edit.setVisibility(View.GONE);
|
||||||
final ExtendedFloatingActionButton directEditingButton = getDirectEditingButton();
|
final ExtendedFloatingActionButton directEditingButton = getDirectEditingButton();
|
||||||
directEditingButton.setExtended(false);
|
directEditingButton.setExtended(false);
|
||||||
|
directEditingButton.setVisibility(View.VISIBLE);
|
||||||
ExtendedFabUtil.toggleExtendedOnLongClick(directEditingButton);
|
ExtendedFabUtil.toggleExtendedOnLongClick(directEditingButton);
|
||||||
directEditingButton.setOnClickListener(v -> {
|
directEditingButton.setOnClickListener(v -> {
|
||||||
if (listener != null) {
|
if (listener != null) {
|
||||||
|
|
Loading…
Reference in a new issue