Skip to content

Commit

Permalink
Partial refactor of the mess that is TerminalView
Browse files Browse the repository at this point in the history
- Decouple the `CursorController`, `TextSelectionCursorController`(previously `SelectionModifierCursorController`) and `TextSelectionHandleView` (previously `HandleView`) from `TerminalView` by moving them to their own class files.
- Fixes #1501 which caused the `java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.` exception to be thrown when long pressing the down key while simultaneously long pressing the terminal view for text selection.
  • Loading branch information
agnostic-apollo committed Mar 6, 2021
1 parent 93a5bf8 commit ada5087
Show file tree
Hide file tree
Showing 5 changed files with 954 additions and 757 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -230,4 +230,12 @@ private void drawTextRun(Canvas canvas, char[] text, int[] palette, float y, int

if (savedMatrix) canvas.restore();
}

public float getFontWidth() {
return mFontWidth;
}

public int getFontLineSpacing() {
return mFontLineSpacing;
}
}
Loading

0 comments on commit ada5087

Please sign in to comment.