mirror of
https://github.com/fankes/termux-app.git
synced 2025-09-07 03:05:18 +08:00
Fix issue where cursor blinker wouldn't automatically start after terminal reset if it was disabled before reset
This commit is contained in:
@@ -905,6 +905,10 @@ public final class TerminalView extends View {
|
||||
* to be shown. It should also be checked if activity is visible if blinker is to be started
|
||||
* before calling this.
|
||||
*
|
||||
* It should also be called after terminal is reset with {@link TerminalSession#reset()} in case
|
||||
* cursor blinker was disabled before reset due to call to
|
||||
* {@link com.termux.terminal.TerminalSessionClient#onTerminalCursorStateChange(boolean)}.
|
||||
*
|
||||
* How cursor blinker starting works is by registering a {@link Runnable} with the looper of
|
||||
* the main thread of the app which when run, toggles the cursor blinking state and re-registers
|
||||
* itself to be called with the delay set by {@link #mTerminalCursorBlinkerRate}. When cursor
|
||||
|
Reference in New Issue
Block a user