nextcloud / nextcloud/android

Keyboard is hidden again and again when quickly focusing main search bar

Open
#11,916 0 comments 0 reactions 0 assignees View on GitHub
bug feature: search
Dominant language
Kotlin
Stars
5.6k
Forks
2k
Avg merge
2d 18h
Merged PRs (30d)
92

Description

### ⚠️ Before posting ⚠️

- [X] This is a **bug**, not a question or an enhancement.
- [X] I've [searched for similar issues](https://github.com/nextcloud/android/issues) and didn't find a duplicate.
- [X] I've written a clear and descriptive title for this issue, not just "Bug" or "Crash".
- [X] I agree to follow Nextcloud's [Code of Conduct](https://nextcloud.com/contribute/code-of-conduct/).

### Steps to reproduce

1. I usw the default AOSP keyboard for reproducing but I've also had this issue with OpenBoard.
2. Open the NextCloud app and directly head to the search bar (the main one, I.e.not in a subfolder - it is only reproducible with that one AFAIK).
3. Tap in there.

IMHO this is a common use case: you quickly want ro find a file by name.

Also this issue has been present since a long time, I just never thought about reporting it, but now it went too bad.

### Expected behaviour

Your keyboard should open and you should be able to type something.

### Actual behaviour

The keyboard actually does open, but quickly afterwards hides again. You focus the search bar again and the same thing happens. This can happen multiple times until you are fast enough ro type or so.

Apparently the search bar looses focus?

From observing I see this may happen when the loading spinner comes up that loads the file overview?

Also this is best reproducible with an account with many files/many directories or so?

I cannot screen cast my main profile, so I made a new one and it happensbtheee too, though more rarely. Notice it also happens when I navigate in the app and go to the main screen where I am searching for sth. then. The keyboard just wents away in between:

https://github.com/nextcloud/android/assets/11966684/d244e517-680c-4505-8d14-cd7e87222047

https://github.com/nextcloud/android/assets/11966684/a03c6c95-a967-4239-8662-4fe53d056715

Just imagine this but with larger loading time for the spinner and thus being more annoying. It's like you just want to type something and then your keyboard gets "grabbed away". Again and again. It is so annoying.

### Android version

13.0

### Device brand and model

Fairphone 4 (FP4)

### Stock or custom OS?

Custom (explain in "additional information")

### Nextcloud android app version

Version 3.25.0

### Nextcloud server version

27.0.2

### Using a reverse proxy?

Yes

### Android logs

[logcat_08-25-2023_00-54-08.txt](https://github.com/nextcloud/android/files/12433989/logcat_08-25-2023_00-54-08.txt)

### Server error logs

```bash
N/A
```

### Additional information

OS: Android 13, CalyxOS 4.12.1.
source: F-Droid
Build-ID: `TQ3A.230805.001.23412010`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.