android / android/appfunctions
[Bug]: Agent App Text input state lost on screen rotation
- Dominant language
- Kotlin
- Stars
- 191
- Forks
- 36
- Avg merge
- 13d 16h
- Merged PRs (30d)
- 2
Description
### Is there an existing issue for this?
- [x] I have searched the existing issues
### Is there a StackOverflow question about this issue?
- [x] I have searched StackOverflow
### What happened?
🐛 Bug Report: [Agent app] User Input Cleared on Screen Rotation
### Description:
When a user enters text into the text input field and rotates the device from portrait to landscape (or vice-versa), the typed text is completely cleared. The UI state is not persisting across configuration changes.
### Steps to Reproduce:
1. Open the Agent application on tab Agent Demo
2. Type any random text into the input field.
3. Rotate the device to trigger a configuration change.
4. Observe that the input field is now empty.
#### Bug Video below
https://github.com/user-attachments/assets/70e1c632-f693-4330-817a-8e9a4eda2e28
### Expected Behavior:
The entered text should survive the rotation and remain visible to the user
### Relevant logcat output
```shell
```
### Code of Conduct
- [x] I agree to follow this project's Code of Conduct
Contributor guide
Research direction
Start in the Agent Demo screen and locate the text input implementation and its state handling. Reproduce the issue by entering text and rotating the device, then trace what happens during the configuration change. Done means the entered text remains visible after rotating between portrait and landscape.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 64/100