mirror of
https://github.com/fankes/termux-app.git
synced 2025-09-04 17:55:36 +08:00
Call setContentDescription in onScreenUpdated rather than in onDraw.
That will be much less expensive.
This commit is contained in:
committed by
Fredrik Fornwall
parent
35a9101f84
commit
5652624fc2
@@ -384,6 +384,7 @@ public final class TerminalView extends View {
|
||||
mEmulator.clearScrollCounter();
|
||||
|
||||
invalidate();
|
||||
setContentDescription(getText());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -761,7 +762,6 @@ public final class TerminalView extends View {
|
||||
if (mEmulator == null) {
|
||||
canvas.drawColor(0XFF000000);
|
||||
} else {
|
||||
setContentDescription(getText());
|
||||
mRenderer.render(mEmulator, canvas, mTopRow, mSelY1, mSelY2, mSelX1, mSelX2);
|
||||
|
||||
if (mIsSelectingText) {
|
||||
|
Reference in New Issue
Block a user