Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 77827598 authored by Niedermann IT-Dienstleistungen's avatar Niedermann IT-Dienstleistungen Committed by GitHub
Browse files

Workaround for #477 and #604 (#622)

* Workaround for #477 and #604

* Workaround for #477 and #604

* [tx-robot] updated from transifex

* [tx-robot] updated from transifex

* Bump butterknife from 10.2.0 to 10.2.1

Bumps [butterknife](https://github.com/JakeWharton/butterknife) from 10.2.0 to 10.2.1.
- [Release notes](https://github.com/JakeWharton/butterknife/releases)
- [Changelog](https://github.com/JakeWharton/butterknife/blob/master/CHANGELOG.md)
- [Commits](https://github.com/JakeWharton/butterknife/compare/10.2.0...10.2.1

)

Signed-off-by: default avatardependabot-preview[bot] <support@dependabot.com>

* Bump butterknife-compiler from 10.2.0 to 10.2.1

Bumps [butterknife-compiler](https://github.com/JakeWharton/butterknife) from 10.2.0 to 10.2.1.
- [Release notes](https://github.com/JakeWharton/butterknife/releases)
- [Changelog](https://github.com/JakeWharton/butterknife/blob/master/CHANGELOG.md)
- [Commits](https://github.com/JakeWharton/butterknife/compare/10.2.0...10.2.1

)

Signed-off-by: default avatardependabot-preview[bot] <support@dependabot.com>

Co-authored-by: default avatarNextcloud Bot <bot@nextcloud.com>
Co-authored-by: default avatardependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
parent 1d5e8ec2
Loading
Loading
Loading
Loading
+15 −2
Original line number Diff line number Diff line
@@ -98,6 +98,19 @@ public class StyleCallback implements ActionMode.Callback {
                    editText.setSelection(end + 2); // after <end>](
                }
                return true;
            case android.R.id.cut: {
                // https://github.com/stefan-niedermann/nextcloud-notes/issues/604
                // https://github.com/stefan-niedermann/nextcloud-notes/issues/477
                try {
                    editText.onTextContextMenuItem(item.getItemId());
                    return true;
                } catch (IndexOutOfBoundsException e) {
                    e.printStackTrace();
                    editText.setSelection(0, 0);
                    editText.clearFocus();
                    return true;
                }
            }
        }
        return false;
    }