mirror of
https://github.com/nix-community/nix-on-droid-app.git
synced 2025-12-04 16:11:11 +01:00
Fix issue where cursor blinker wouldn't automatically start after terminal reset if it was disabled before reset
This commit is contained in:
parent
d3c34ad1f5
commit
00f805f7ec
3 changed files with 18 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue