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

Commit e973295e authored by Stefan Niedermann's avatar Stefan Niedermann
Browse files

#776 App crash when selected

parent 847a6f5f
Loading
Loading
Loading
Loading
+9 −5
Original line number Diff line number Diff line
@@ -45,11 +45,15 @@ public class ContextBasedFormattingCallback implements ActionMode.Callback {
                    endOfLine--;
                }
            }
            try {
                String line = text.subSequence(startOfLine, endOfLine).toString();
                if (MarkDownUtil.lineStartsWithCheckbox(line)) {
                    menu.findItem(R.id.checkbox).setVisible(false);
                    Log.i(TAG, "Hide checkbox menu item because line starts already with checkbox");
                }
            } catch (StringIndexOutOfBoundsException e) {
                Log.e(TAG, e.getMessage(), e);
            }
        } else {
            Log.e(TAG, "SelectionStart is " + originalCursorPosition + ". Expected to be between 0 and " + text.length());
        }
+1 −0
Original line number Diff line number Diff line
- App crash when selected (#776)
 No newline at end of file