question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TextView stops being responsive after application is sent to the background

See original GitHub issue

Describe 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:

  1. Use a multi-line TextView in an application, type in characters and move around the cursor freely using the keyboard arrow keys.
  2. Change the active window by using Alt + Tab. This of course assumes having at least one other application open in your OS.
  3. Re-activate the application’s window by using Alt + Tab again.
  4. 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 FocusChangeWithAltNTab

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:closed
  • Created 4 months ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
tigcommented, Jul 18, 2023

Cool. So just the other one wasn’t fixed.

1reaction
BDispcommented, May 28, 2023

Fixed with #2679.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found