nextcloud / nextcloud/android

Cross icon should not show when the search view field is empty.

Open
#11,963 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

- Open Text Preview.
- Click on search icon.
- Now see cross icon is showing even if there's no text.
- Clicking on it would make things out of sync and weird.

https://github.com/nextcloud/android/assets/111801812/b9af2a87-b245-4639-abe6-60c7aac3d4fd

### Expected behaviour

- Only show cross icon when text field has some text.
- It should only show when there's some text because it is used for clearing the text

### Actual behaviour

- Showing cross icon even if field is empty.

### Android version

13

### Device brand and model

Oneplus 9RT

### Stock or custom OS?

Stock

### Nextcloud android app version

-

### Nextcloud server version

-

### Using a reverse proxy?

I don't know

### Android logs

_No response_

### Server error logs

_No response_

### Additional information

_No response_

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.