TextView stops being responsive after application is sent to the background
See original GitHub issueDescribe the bug
When the application’s window stops being active by sending it to the background using Alt + Tab (not with the mouse) and then it is brought to the foreground again, a TextView
component stops being responsive to many keyboard inputs. Even though, you can type in new characters, you cannot move the cursor using the keyboard arrows or change a line with enter or delete characters with backspace.
To Reproduce Steps to reproduce the behavior:
- Use a multi-line
TextView
in an application, type in characters and move around the cursor freely using the keyboard arrow keys. - Change the active window by using Alt + Tab. This of course assumes having at least one other application open in your OS.
- Re-activate the application’s window by using Alt + Tab again.
- Notice that you cannot move the cursor with the keyboard anymore. Pressing enter or backspace also has no effect, but you can type in new characters.
Expected behavior
The TextView
’s functionality should not change when the application loses focus at some point in time.
Screenshots
Desktop (please complete the following information):
- OS: Windows
- Version 10
Additional context I noticed this behavior in older versions too, it’s not new.
Issue Analytics
- State:
- Created 4 months ago
- Comments:5
Top Results From Across the Web
TextView stops updating after bringing activity back to the ...
When an Activity is backgrounded and then resumed, it goes through the whole lifecycle. This means a new instance is created, and Activity....
Read more >Autosize TextViews
There are three ways you can set up the autosizing of TextView , described in the sections that follow: Default; Granularity; Preset sizes....
Read more >TextView | Android Developers
Quickly bring your app to life with less code, using a modern declarative approach to UI, and the simplicity of Kotlin. ... Start...
Read more >Background Processing in Android
Running long-running operations on the main thread can lead to app freezes, unresponsiveness, and thus, poor user experience. If the UI thread ...
Read more >Making the most of TextView auto-sizing on Android
A "step" is the increase/decrease in size of the text layout bounds. The text size scales uniformly between the minimum and maximum text...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Cool. So just the other one wasn’t fixed.
Fixed with #2679.