Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Back button closes search activity instead of closing keyboard #144

Closed
tp0 opened this issue Aug 28, 2024 · 1 comment
Closed

Back button closes search activity instead of closing keyboard #144

tp0 opened this issue Aug 28, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@tp0
Copy link

tp0 commented Aug 28, 2024

Bug description

  1. Launch qBitController

  2. Tap magnifying glass icon to search, type something to get results

  3. Tap (software) back back button

What happens: entire search activity closes and app returns to the main torrent list.

Expected behaviour: only keyboard closes.

Logs

No response

qBitController version

0.8.5

qBittorrent version

4.5.5

Android version

14, can not repro on Android 11

Additional details

Keyboard can be closed by tapping enter on the keyboard. Even if one does this and then tap one of the torrents and then go back by tapping back button, the keyboard pops up again. On Android 11, the keyboard pops up only if was open while tapping a search result.

Something to do with onBackPressed() being deprecated in API level 33 (Android 13)?

@tp0 tp0 added the bug Something isn't working label Aug 28, 2024
@Bartuzen
Copy link
Owner

That search bar is a native Android component that handles back presses by itself. I assume this is a bug on Android's side.
Anyway, I re-coded the torrent list screen with Compose and implemented the search bar manually. It now functions correctly. This change will be included in the next version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants